Class PdfType0Function

All Implemented Interfaces:
IPdfFunction

public class PdfType0Function extends AbstractPdfFunction<PdfStream>
  • Constructor Details

    • PdfType0Function

      public PdfType0Function (PdfStream pdfObject)
    • PdfType0Function

      public PdfType0Function (double[] domain, int[] size, double[] range, int order, int bitsPerSample, byte[] samples)
    • PdfType0Function

      public PdfType0Function (float[] domain, int[] size, float[] range, int order, int bitsPerSample, byte[] samples)
    • PdfType0Function

      public PdfType0Function (double[] domain, int[] size, double[] range, int order, int[] encode, double[] decode, int bitsPerSample, byte[] samples)
  • Method Details

    • getOrder

      public int getOrder()
    • setOrder

      public void setOrder (int order)
    • getSize

      public int[] getSize()
    • setSize

      public void setSize (int[] size)
    • getEncode

      public int[] getEncode()
    • setEncode

      public void setEncode (int[] encode)
    • getDecode

      public double[] getDecode()
    • setDecode

      public void setDecode (double[] decode)
    • checkCompatibilityWithColorSpace

      public boolean checkCompatibilityWithColorSpace (PdfColorSpace alternateSpace)
      Description copied from class: AbstractPdfFunction
      Chacks wether the output of the function matches in components with the passed by color space.
      Specified by:
      checkCompatibilityWithColorSpace in interface IPdfFunction
      Overrides:
      checkCompatibilityWithColorSpace in class AbstractPdfFunction<PdfStream>
      Parameters:
      alternateSpace - The color space to verify against
      Returns:
      True when compatible
    • setDomain

      public void setDomain (double[] domain)
      Description copied from class: AbstractPdfFunction
      The valid input domain, input will be clipped to this domain contains a min max pair per input component.

      (see ISO-320001 Table 38)

      Specified by:
      setDomain in interface IPdfFunction
      Overrides:
      setDomain in class AbstractPdfFunction<PdfStream>
      Parameters:
      domain - the new set of limits
    • setRange

      public void setRange (double[] range)
      Description copied from class: AbstractPdfFunction
      the valid output range, output will be clipped to this range contains a min max pair per output component.

      (see ISO-320001 Table 38)

      Specified by:
      setRange in interface IPdfFunction
      Overrides:
      setRange in class AbstractPdfFunction<PdfStream>
      Parameters:
      range - the new set of limts
    • calculate

      public double[] calculate (double[] input)
      Description copied from interface: IPdfFunction
      Calculates one set of input components to one set of output components.
      Parameters:
      input - The input values size must contain IPdfFunction.getInputSize() items
      Returns:
      an array the size of IPdfFunction.getOutputSize() items containing the result