Package com.ribs.pdf

Class PDFIndexedColorSpace

java.lang.Object
java.awt.color.ColorSpace
com.ribs.pdf.PDFIndexedColorSpace
All Implemented Interfaces:
Serializable

public class PDFIndexedColorSpace extends ColorSpace
See Also:
  • Constructor Details

    • PDFIndexedColorSpace

      public PDFIndexedColorSpace(ColorSpace base, int hival, byte[] comps)
    • PDFIndexedColorSpace

      public PDFIndexedColorSpace(ColorSpace base, int hival, boolean alpha, byte[] comps)
  • Method Details

    • getMinValue

      public float getMinValue(int i)
      colors in an indexed colorspace are ints in the range 0->numColors-1
      Overrides:
      getMinValue in class ColorSpace
    • getMaxValue

      public float getMaxValue(int i)
      Overrides:
      getMaxValue in class ColorSpace
    • 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