Package com.datalogics.PDFL
Class CalGrayColorSpace
java.lang.Object
com.datalogics.PDFL.ColorSpace
com.datalogics.PDFL.CalGrayColorSpace
A calibrated gray color space. A CalGray color space is a special case of a single-component CIE-based color space, known as a CIE-based A color space.
This type of space is the one-dimensional (and usually achromatic) analog of CIE-based ABC spaces.
-
Field Summary
Fields inherited from class com.datalogics.PDFL.ColorSpace
DEVICE_CMYK, DEVICE_GRAY, DEVICE_RGB, DEVICE_RGBA, LAB, LAB_A -
Constructor Summary
ConstructorsConstructorDescriptionCalGrayColorSpace(List<Double> whitePoint) Create a CalGray color space.CalGrayColorSpace(List<Double> whitePoint, List<Double> blackPoint, double gamma) Create a CalGray color space. -
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.doublegetGamma()A number G defining the gamma for the gray component.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
-
CalGrayColorSpace
Create a CalGray 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- A number G defining the gamma for the gray component. G must be positive and is generally greater than or equal to 1.
-
CalGrayColorSpace
Create a CalGray color space.The blackPoint defaults to [0.0, 0.0, 0.0].
The gamma defaults to 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
public double getGamma()A number G defining the gamma for the gray component. G must be positive and is generally greater than or equal to 1.
-