Class PdfPattern.Shading

Enclosing class:
PdfPattern

public static class PdfPattern.Shading extends PdfPattern
Shading pattern provides a smooth transition between colors across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the color transition. Patterns of this type are described by pattern dictionaries with a pattern type of 2.
  • Constructor Details

    • Shading

      public Shading (PdfDictionary pdfObject)
      Creates new instance from the PdfStream object. This stream should have PatternType equals to 2.
      Parameters:
      pdfObject - the PdfStream that represents Shading Pattern.
    • Shading

      public Shading (AbstractPdfShading shading)
      Creates a new instance of Shading Pattern.
      Parameters:
      shading - the AbstractPdfShading that specifies the details of a particular gradient fill
  • Method Details