Class FunctionShading

  • All Implemented Interfaces:
    java.awt.Paint, java.awt.PaintContext, java.awt.Transparency

    public class FunctionShading
    extends ShadingPattern
    Function-based (type 1) shadings x,y values in shading space are just passed to the function and the returned color value is plotted.
    • Constructor Detail

      • FunctionShading

        public FunctionShading​(java.util.Map patternDict,
                               java.util.Map shadingDict,
                               PDFFile srcFile)
    • Method Detail

      • doShading

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