Class DeviceCMYKColorSpace
java.lang.Object
java.awt.color.ColorSpace
org.apache.xmlgraphics.java2d.color.AbstractDeviceSpecificColorSpace
org.apache.xmlgraphics.java2d.color.DeviceCMYKColorSpace
- All Implemented Interfaces:
Serializable
,ColorSpaceOrigin
public class DeviceCMYKColorSpace
extends AbstractDeviceSpecificColorSpace
implements ColorSpaceOrigin
This class represents an uncalibrated CMYK color space.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name for the uncalibrated CMYK pseudo-profileFields inherited from class java.awt.color.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 Summary
ConstructorsConstructorDescriptionConstructs an uncalibrated CMYK ColorSpace object withColorSpace.TYPE_CMYK
and 4 components. -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
createCMYKColor
(float[] cmykComponents) Creates a color instance representing a device-specific CMYK color.float[]
fromCIEXYZ
(float[] colorvalue) float[]
fromRGB
(float[] rgbvalue) static DeviceCMYKColorSpace
Deprecated.Returns the name of the profile used to identify the color space in a particular context.Returns the URI identifying the associate color profile.float[]
toCIEXYZ
(float[] colorvalue) float[]
toRGB
(float[] colorvalue) Methods inherited from class java.awt.color.ColorSpace
getInstance, getMaxValue, getMinValue, getName, getNumComponents, getType, isCS_sRGB
-
Field Details
-
PSEUDO_PROFILE_NAME
The name for the uncalibrated CMYK pseudo-profile- See Also:
-
-
Constructor Details
-
DeviceCMYKColorSpace
public DeviceCMYKColorSpace()Constructs an uncalibrated CMYK ColorSpace object withColorSpace.TYPE_CMYK
and 4 components.- See Also:
-
-
Method Details
-
getInstance
Deprecated.UseColorSpaces.getDeviceCMYKColorSpace()
instead.Returns an instance of an uncalibrated CMYK color space.- Returns:
- CMYKColorSpace the requested color space object
-
toRGB
public float[] toRGB(float[] colorvalue) - Specified by:
toRGB
in classColorSpace
-
fromRGB
public float[] fromRGB(float[] rgbvalue) - Specified by:
fromRGB
in classColorSpace
-
toCIEXYZ
public float[] toCIEXYZ(float[] colorvalue) - Specified by:
toCIEXYZ
in classColorSpace
-
fromCIEXYZ
public float[] fromCIEXYZ(float[] colorvalue) - Specified by:
fromCIEXYZ
in classColorSpace
-
createCMYKColor
Creates a color instance representing a device-specific CMYK color. An sRGB value is calculated from the CMYK colors but it may not correctly represent the given CMYK values.- Parameters:
cmykComponents
- the CMYK components- Returns:
- the device-specific color
-
getProfileName
Returns the name of the profile used to identify the color space in a particular context.- Specified by:
getProfileName
in interfaceColorSpaceOrigin
- Returns:
- the profile name
-
getProfileURI
Returns the URI identifying the associate color profile.- Specified by:
getProfileURI
in interfaceColorSpaceOrigin
- Returns:
- the profile URI
-
ColorSpaces.getDeviceCMYKColorSpace()
instead.