Class Type5ShadingPaint
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.shading.Type5ShadingPaint
- All Implemented Interfaces:
Paint
,Transparency
AWT Paint for Gouraud Triangle Lattice (Type 5) shading.
-
Field Summary
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
Constructor Summary
ConstructorsConstructorDescriptionType5ShadingPaint
(PDShadingType5 shading, Matrix ctm, int pageHeight) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) int
-
Constructor Details
-
Type5ShadingPaint
Constructor.- Parameters:
shading
- the shading resourcesctm
- current transformation matrixpageHeight
- the height of the page
-
-
Method Details
-
getTransparency
public int getTransparency()- Specified by:
getTransparency
in interfaceTransparency
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContext
in interfacePaint
-