Class AlternateColorSpace

java.lang.Object
org.loboevolution.pdfview.colorspace.PDFColorSpace
org.loboevolution.pdfview.colorspace.AlternateColorSpace

public class AlternateColorSpace extends PDFColorSpace
A color space that uses another color space to return values, and a function to map between values in the input and input values to the alternate color space
  • Constructor Details

  • Method Details

    • getNumComponents

      public int getNumComponents()
      get the number of components expected in the getPaint command

      get the number of components expected in the getPaint command

      Overrides:
      getNumComponents in class PDFColorSpace
      Returns:
      a Integer object.
    • getPaint

      public PDFPaint getPaint(float[] components)
      get the PDFPaint representing the color described by the given color components

      get the PDFPaint representing the color described by the given color components

      Overrides:
      getPaint in class PDFColorSpace
      Parameters:
      components - the color components corresponding to the given colorspace
      Returns:
      a PDFPaint object representing the closest Color to the given components.
    • getColorSpace

      public ColorSpace getColorSpace()
      get the original Java ColorSpace.

      get the original Java ColorSpace.

      Overrides:
      getColorSpace in class PDFColorSpace
      Returns:
      a ColorSpace object.
    • getFunktion

      public PDFFunction getFunktion()
      ********************************************************************** Get the PDF function
      Returns:
      PDFFunction **********************************************************************