Class LabColorSpace

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

public class LabColorSpace extends ColorSpace
A Lab color space is a CIE-based ABC color space with two transformation stages. In this type of space, A, B, and C represent the L*, a*, and b* components of a CIE 1976 L*a*b* space. The range of the first (L*) component is always 0 to 100; the ranges of the second and third (a* and b*) components are defined by the Range.
  • Constructor Details

    • LabColorSpace

      public LabColorSpace(List<Double> whitePoint, List<Double> blackPoint, List<Double> range)
      Create a Lab 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.
      range - An array of four numbers [ amin amax bmin bmax ] specifying the range of valid values for the a* and b* (B and C) components of the color space.
    • LabColorSpace

      public LabColorSpace(List<Double> whitePoint)
      Create a Lab color space.

      The blackPoint defaults to [0.0, 0.0, 0.0].

      The range defaults to [-100 100 -100 100]

      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.
    • getRange

      public List<Double> getRange()
      An array of four numbers [ amin amax bmin bmax ] specifying the range of valid values for the a* and b* (B and C) components of the color space.