public class CalGrayColorSpace extends ColorSpace
This type of space is the one-dimensional (and usually achromatic) analog of CIE-based ABC spaces.
DEVICE_CMYK, DEVICE_GRAY, DEVICE_RGB, DEVICE_RGBA, LAB, LAB_A| Constructor and Description |
|---|
CalGrayColorSpace(java.util.List<java.lang.Double> whitePoint)
Create a CalGray color space.
|
CalGrayColorSpace(java.util.List<java.lang.Double> whitePoint,
java.util.List<java.lang.Double> blackPoint,
double gamma)
Create a CalGray color space.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
java.util.List<java.lang.Double> |
getBlackPoint()
An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point.
|
double |
getGamma()
A number G defining the gamma for the gray component.
|
java.util.List<java.lang.Double> |
getWhitePoint()
An array of three numbers specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point.
|
equals, getName, getNumComponents, getPDFObject, toStringpublic CalGrayColorSpace(java.util.List<java.lang.Double> whitePoint,
java.util.List<java.lang.Double> blackPoint,
double gamma)
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.public CalGrayColorSpace(java.util.List<java.lang.Double> whitePoint)
The blackPoint defaults to [0.0, 0.0, 0.0].
The gamma defaults to 1
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.public void delete()
delete in class ColorSpacepublic java.util.List<java.lang.Double> getWhitePoint()
public java.util.List<java.lang.Double> getBlackPoint()
public double getGamma()