Class MaskColorSpace

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

public class MaskColorSpace extends ColorSpace
A color space used to implement masks. For now, the only type of mask supported is one where the image pixels specify where to paint, and the painting itself is done in a pre-specified PDF Paint.
See Also:
  • Constructor Details

    • MaskColorSpace

      public MaskColorSpace(PDFPaint paint)
      Creates a new instance of PaintColorSpace
      Parameters:
      paint - a PDFPaint object.
  • 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
    • getNumComponents

      public int getNumComponents()
      Overrides:
      getNumComponents in class ColorSpace