Class CalRGBColor

java.lang.Object
java.awt.color.ColorSpace
org.loboevolution.pdfview.colorspace.CalRGBColor
All Implemented Interfaces:
Serializable

public class CalRGBColor extends ColorSpace
A ColorSpace for calibrated RGB

Author Mike Wessler

See Also:
  • Constructor Details

    • CalRGBColor

      public CalRGBColor(PDFObject obj) throws IOException
      Create a new Calibrated RGB color space object, given the description in a PDF dictionary.
      Parameters:
      obj - a dictionary that contains an array of 3 Numbers for "WhitePoint" and "BlackPoint", a Number for "Gamma", and an array of 9 Numbers for "Matrix".
      Throws:
      IOException - if any.
  • Method Details

    • getNumComponents

      public int getNumComponents()

      get the number of components (3)

      Overrides:
      getNumComponents in class ColorSpace
    • toRGB

      public float[] toRGB(float[] comp)

      convert from Calibrated RGB to standard RGB

      Specified by:
      toRGB in class ColorSpace
    • fromRGB

      public float[] fromRGB(float[] rgbvalue)

      convert from RGB to Calibrated RGB. NOT IMPLEMENTED

      Specified by:
      fromRGB in class ColorSpace
    • fromCIEXYZ

      public float[] fromCIEXYZ(float[] colorvalue)

      convert from CIEXYZ to Calibrated RGB. NOT IMPLEMENTED

      Specified by:
      fromCIEXYZ in class ColorSpace
    • getType

      public int getType()

      get the type of this color space (TYPE_RGB)

      Overrides:
      getType in class ColorSpace
    • toCIEXYZ

      public float[] toCIEXYZ(float[] colorvalue)

      convert from Calibrated RGB to CIEXYZ. NOT IMPLEMENTED

      Specified by:
      toCIEXYZ in class ColorSpace