Class ColorSpaceLab

java.lang.Object
java.awt.color.ColorSpace
org.apache.pdfbox.pdmodel.graphics.color.ColorSpaceLab
All Implemented Interfaces:
Serializable

public class ColorSpaceLab extends ColorSpace
This class represents a CalRGB color space. The color conversion uses the algorithm described on wikipedia. The blackpoint isn't used, as I can't find any hint how to do that.
See Also:
  • Constructor Details

    • ColorSpaceLab

      public ColorSpaceLab()
      Default Constructor.
    • ColorSpaceLab

      public ColorSpaceLab(PDTristimulus whitept, PDTristimulus blackpt, PDRange a, PDRange b)
      Constructor.
      Parameters:
      whitept - whitepoint values
      blackpt - blackpoint values
      a - range for value a
      b - range for value b
  • Method Details

    • toRGB

      public float[] toRGB(float[] colorvalue)
      Specified by:
      toRGB in class ColorSpace
    • fromRGB

      public float[] fromRGB(float[] rgbvalue)
      Specified by:
      fromRGB in class ColorSpace
    • toCIEXYZ

      public float[] toCIEXYZ(float[] colorvalue)
      Specified by:
      toCIEXYZ in class ColorSpace
    • fromCIEXYZ

      public float[] fromCIEXYZ(float[] colorvalue)
      Specified by:
      fromCIEXYZ in class ColorSpace