Class ShadingContext

java.lang.Object
org.apache.pdfbox.pdmodel.graphics.shading.ShadingContext
Direct Known Subclasses:
AxialShadingContext, RadialShadingContext

public abstract class ShadingContext extends Object
A base class to handle stuff that is common to all shading types.
Author:
Shaola Ren, Tilman Hausherr
  • Field Details

    • shading

      protected final PDShadingResources shading
    • deviceBounds

      protected final Rectangle deviceBounds
    • shadingColorSpace

      protected ColorSpace shadingColorSpace
    • colorSpace

      protected PDColorSpace colorSpace
    • bboxRect

      protected PDRectangle bboxRect
    • minBBoxX

      protected float minBBoxX
    • minBBoxY

      protected float minBBoxY
    • maxBBoxX

      protected float maxBBoxX
    • maxBBoxY

      protected float maxBBoxY
    • outputColorModel

      protected ColorModel outputColorModel
    • shadingTinttransform

      protected PDFunction shadingTinttransform
  • Constructor Details

  • Method Details

    • convertToRGB

      protected int convertToRGB(float[] values)
    • getShadingTintTransform

      public PDFunction getShadingTintTransform()
      Returns the function used for the shading tint transformation.
      Returns:
      the shading tint transformation function