Class ColorSpaceCalRGB

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

public class ColorSpaceCalRGB extends ColorSpace
This class represents a CalRGB color space. In the first place this implementation is needed to support CalRGB. To keep it simple, the CalRGB colorspace is treated similar to a DeviceRGB colorspace. There is no conversion including the gamma, whitepoint, blackpoint or matrix values yet. This should be suitable for displaying and simple printings.
Version:
$Revision: 1.0 $
Author:
Andreas Lehmkühler
See Also:
  • Constructor Details

    • ColorSpaceCalRGB

      public ColorSpaceCalRGB()
      Constructor.
    • ColorSpaceCalRGB

      public ColorSpaceCalRGB(PDGamma gammaValue, PDTristimulus whitept, PDTristimulus blackpt, PDMatrix linearMatrix)
      Constructor.
      Parameters:
      gammaValue - Gamma
      whitept - Whitepoint
      blackpt - Blackpoint
      linearMatrix - Matrix value
  • Method Details

    • fromCIEXYZ

      public float[] fromCIEXYZ(float[] colorvalue)
      Specified by:
      fromCIEXYZ 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
    • toRGB

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