Class CalGrayColorSpace

java.lang.Object
com.datalogics.PDFL.ColorSpace
com.datalogics.PDFL.CalGrayColorSpace

public class CalGrayColorSpace extends ColorSpace
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.

  • Constructor Details

    • CalGrayColorSpace

      public CalGrayColorSpace(List<Double> whitePoint, List<Double> blackPoint, double gamma)
      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

      public CalGrayColorSpace(List<Double> whitePoint)
      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:
      delete in class ColorSpace
    • getWhitePoint

      public List<Double> 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

      public List<Double> 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.