Class Shading

java.lang.Object
com.datalogics.PDFL.Element
com.datalogics.PDFL.Shading

public class Shading extends Element
Represents a region shaded with color, as defined by a shading dictionary. A shading pattern defines a gradient fill in a graphic that produces a smooth transition between colors across the area covered by the graphic area. The "sh" paint operator is invoked for the shading object. This does not correspond to a shading dictionary within a PDF pattern. Refer to the Pattern object for shading dictionaries used in PDF patterns.

A shading pattern defines a gradient fill in a graphic that produces a smooth transition between colors across the area covered by the graphic area. The "sh" paint operator is invoked for the shading object. This does not correspond to a shading dictionary within a PDF pattern. Refer to the Pattern object for shading dictionaries used in PDF patterns.

  • Method Details

    • delete

      public void delete()
      Overrides:
      delete in class Element
    • getColorSpace

      public ColorSpace getColorSpace()
      Get the ColorSpace of the current Shading object.
    • getGraphicState

      public GraphicState getGraphicState()
      Get the graphic state of the current Shading object.

      May return null if this element does not have a GraphicState.