Class ColorSpaces
java.lang.Object
org.apache.xmlgraphics.java2d.color.ColorSpaces
Provides access to various color spaces.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CIELabColorSpace
Returns an instance of the CIE L*a*b* color space using the D50 white point.static CIELabColorSpace
Returns an instance of the CIE L*a*b* color space using the D65 white point.static ColorSpaceOrigin
Returns information about the origin of a color space.static DeviceCMYKColorSpace
Returns an instance of the device-specific CMYK color space.static boolean
Indicates whether the given color space is device-specific (i.e.
-
Method Details
-
getDeviceCMYKColorSpace
Returns an instance of the device-specific CMYK color space.- Returns:
- an instance of the device-specific CMYK color space
-
isDeviceColorSpace
Indicates whether the given color space is device-specific (i.e. uncalibrated).- Parameters:
cs
- the color space to check- Returns:
- true if the color space is device-specific
-
getCIELabColorSpaceD50
Returns an instance of the CIE L*a*b* color space using the D50 white point.- Returns:
- an instance of the requested CIE L*a*b* color space
-
getCIELabColorSpaceD65
Returns an instance of the CIE L*a*b* color space using the D65 white point.- Returns:
- an instance of the requested CIE L*a*b* color space
-
getColorSpaceOrigin
Returns information about the origin of a color space.- Parameters:
cs
- the color space- Returns:
- the origin information
-