Class CalRGBColorSpace

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

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

  • 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

      public CalRGBColorSpace(List<Double> whitePoint)
      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:
      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 List<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.
    • getMatrix

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