Package com.datalogics.PDFL
Class CalRGBColorSpace
java.lang.Object
com.datalogics.PDFL.ColorSpace
com.datalogics.PDFL.CalRGBColorSpace
A calibrated RGB color space. A CalRGB color space (Red, Green, Blue) is a CIE-based ABC color space with only one transformation stage instead of two.
In this type of space, A, B, and C represent calibrated red, green, and blue color values. These three color components must be in the range 0.0 to 1.0; component values falling outside that range are adjusted to the nearest valid value without error indication.
-
Field Summary
Fields inherited from class com.datalogics.PDFL.ColorSpace
DEVICE_CMYK, DEVICE_GRAY, DEVICE_RGB, DEVICE_RGBA, LAB, LAB_A -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point.getGamma()A number G defining the gamma for the gray component.An array of nine numbers [ XA YA ZA XB YB ZB XC YC ZC ] specifying the linear interpretation of the decoded A, B, and C components of the color space with respect to the final XYZ representation.An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point.Methods inherited from class com.datalogics.PDFL.ColorSpace
equals, getName, getNumComponents, getPDFObject, toString
-
Constructor Details
-
CalRGBColorSpace
public CalRGBColorSpace(List<Double> whitePoint, List<Double> blackPoint, List<Double> gamma, List<Double> matrix) Create a CalRGB color space.- Parameters:
whitePoint- An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. The numbers X and Z must be positive, and Y must be equal to 1.0.blackPoint- An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. All three of these numbers must be non-negative.gamma- An array of three numbers [ GR GG GB ] specifying the gamma for the red, green, and blue (A, B, and C) components of the color space.matrix- An array of nine numbers [ XA YA ZA XB YB ZB XC YC ZC ] specifying the linear interpretation of the decoded A, B, and C components of the color space with respect to the final XYZ representation.
-
CalRGBColorSpace
Create a CalRGB color space.The blackPoint defaults to [0.0, 0.0, 0.0].
The gamma defaults to [1.0, 1.0, 1.0].
The matrix defaults to [1 0 0 0 1 0 0 0 1]
- Parameters:
whitePoint- An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. The numbers X and Z must be positive, and Y must be equal to 1.0.
-
-
Method Details
-
delete
public void delete()- Overrides:
deletein classColorSpace
-
getWhitePoint
An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. The numbers X and Z must be positive, and Y must be equal to 1.0. -
getBlackPoint
An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. All three of these numbers must be non-negative. -
getGamma
A number G defining the gamma for the gray component. G must be positive and is generally greater than or equal to 1. -
getMatrix
An array of nine numbers [ XA YA ZA XB YB ZB XC YC ZC ] specifying the linear interpretation of the decoded A, B, and C components of the color space with respect to the final XYZ representation.
-