public float[] getColorComponents (ColorSpace cspace, float[] compArray)

Returns a float array containing only the color components of the Color in the ColorSpace specified by the cspace parameter. If compArray is null, an array with length equal to the number of components in cspace is created for the return value. Otherwise, compArray must have at least this length, and it is filled in with the components and returned.

Parameters:
cspace    a specified ColorSpace
compArray    an array that this method fills with the color components of this Color in the specified ColorSpace

Returns:  the color components in a float array.