Class ShadingContext
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.shading.ShadingContext
- Direct Known Subclasses:
AxialShadingContext
,RadialShadingContext
A base class to handle stuff that is common to all shading types.
- Author:
- Shaola Ren, Tilman Hausherr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PDRectangle
protected PDColorSpace
protected final Rectangle
protected float
protected float
protected float
protected float
protected ColorModel
protected final PDShadingResources
protected ColorSpace
protected PDFunction
-
Constructor Summary
ConstructorsConstructorDescriptionShadingContext
(PDShadingResources shading, ColorModel cm, AffineTransform xform, Matrix ctm, int pageHeight, Rectangle dBounds) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
convertToRGB
(float[] values) Returns the function used for the shading tint transformation.
-
Field Details
-
shading
-
deviceBounds
-
shadingColorSpace
-
colorSpace
-
bboxRect
-
minBBoxX
protected float minBBoxX -
minBBoxY
protected float minBBoxY -
maxBBoxX
protected float maxBBoxX -
maxBBoxY
protected float maxBBoxY -
outputColorModel
-
shadingTinttransform
-
-
Constructor Details
-
ShadingContext
public ShadingContext(PDShadingResources shading, ColorModel cm, AffineTransform xform, Matrix ctm, int pageHeight, Rectangle dBounds) throws IOException - Throws:
IOException
-
-
Method Details
-
convertToRGB
protected int convertToRGB(float[] values) -
getShadingTintTransform
Returns the function used for the shading tint transformation.- Returns:
- the shading tint transformation function
-