Class PDFFunctionShading

All Implemented Interfaces:
Paint, PaintContext, Transparency

public class PDFFunctionShading extends PDFShadingPattern
  • Constructor Details

    • PDFFunctionShading

      public PDFFunctionShading(Map patternDict, Map shadingDict, PDFFile srcFile)
  • Method Details

    • initializeShadingParameters

      public void initializeShadingParameters(Map shadingDict, PDFFile srcFile)
      Read the shading parameters
      Overrides:
      initializeShadingParameters in class PDFShadingPattern
    • doShading

      public void doShading(int[] samples, int x, int y, int w, int h)
      Description copied from class: PDFShadingPattern
      Subclasses should implement this method to draw the shading. samples is defined to be an array of 8 bit per sample/4 samples per pixel ARGB pixels. There is no padding, so all scanlines are w integers wide.
      Specified by:
      doShading in class PDFShadingPattern