java.lang.Object
org.sejda.sambox.pdmodel.graphics.shading.ShadingContext
org.sejda.sambox.pdmodel.graphics.shading.TriangleBasedShadingContext
org.sejda.sambox.pdmodel.graphics.shading.GouraudShadingContext
org.sejda.sambox.pdmodel.graphics.shading.Type5ShadingContext
- All Implemented Interfaces:
PaintContext
AWT PaintContext for Gouraud Triangle Lattice (Type 5) shading.
-
Constructor Summary
ConstructorsConstructorDescriptionType5ShadingContext(PDShadingType5 shading, ColorModel cm, AffineTransform xform, Matrix matrix, Rectangle deviceBounds) Constructor creates an instance to be used for fill operations. -
Method Summary
Methods inherited from class org.sejda.sambox.pdmodel.graphics.shading.GouraudShadingContext
calcPixelTable, dispose, isDataEmpty, setTriangleListMethods inherited from class org.sejda.sambox.pdmodel.graphics.shading.TriangleBasedShadingContext
calcPixelTable, createPixelTable, getColorModel, getRasterMethods inherited from class org.sejda.sambox.pdmodel.graphics.shading.ShadingContext
convertToRGB, getBackground, getRgbBackground, getShading, getShadingColorSpace
-
Constructor Details
-
Type5ShadingContext
Type5ShadingContext(PDShadingType5 shading, ColorModel cm, AffineTransform xform, Matrix matrix, Rectangle deviceBounds) throws IOException Constructor creates an instance to be used for fill operations.- Parameters:
shading- the shading type to be usedcm- the color model to be usedxform- transformation for user to device spacematrix- the pattern matrix concatenated with that of the parent content stream- Throws:
IOException- if something went wrong
-