public class ICC_ColorSpace extends ColorSpace
CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy
Constructor and Description |
---|
ICC_ColorSpace(ICC_Profile profile)
Constructs a new ICC_ColorSpace from an ICC_Profile object.
|
Modifier and Type | Method and Description |
---|---|
float[] |
fromCIEXYZ(float[] colorvalue)
Transforms a color value assumed to be in the CS_CIEXYZ conversion color
space into this ColorSpace.
|
float[] |
fromRGB(float[] rgbvalue)
Transforms a color value assumed to be in the default CS_sRGB color space
into this ColorSpace.
|
float |
getMaxValue(int idx)
Returns the maximum normalized color component value for the specified
component.
|
float |
getMinValue(int idx)
Returns the minimum normalized color component value for the specified
component.
|
ICC_Profile |
getProfile()
Return the profile
|
boolean |
isCS_sRGB() |
float[] |
toCIEXYZ(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into the
CS_CIEXYZ conversion color space.
|
float[] |
toRGB(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into a value in
the default CS_sRGB color space.
|
getInstance, getName, getNumComponents, getType
public ICC_ColorSpace(ICC_Profile profile)
IllegalArgumentException
- If profile is inappropriate for
representing a ColorSpace.public ICC_Profile getProfile()
public float[] toRGB(float[] colorvalue)
toRGB
in class ColorSpace
ArrayIndexOutOfBoundsException
- If array length is not at least
the number of components in this ColorSpace.public float[] fromRGB(float[] rgbvalue)
fromRGB
in class ColorSpace
ArrayIndexOutOfBoundsException
- If array length is not at
least 3.public float[] toCIEXYZ(float[] colorvalue)
toCIEXYZ
in class ColorSpace
ArrayIndexOutOfBoundsException
- If array length is not at
least the number of components in this ColorSpace.public float[] fromCIEXYZ(float[] colorvalue)
fromCIEXYZ
in class ColorSpace
ArrayIndexOutOfBoundsException
- If array length is not at
least 3.public boolean isCS_sRGB()
isCS_sRGB
in class ColorSpace
public float getMinValue(int idx)
getMinValue
in class ColorSpace
IllegalArgumentException
- If component is less than 0 or greater
than numComponents - 1.public float getMaxValue(int idx)
getMaxValue
in class ColorSpace
IllegalArgumentException
- If component is less than 0 or greater
than numComponents - 1.