Class Type7ShadingPaint
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.shading.Type7ShadingPaint
- All Implemented Interfaces:
Paint
,Transparency
AWT Paint for tensor-product patch meshes (Type 7) shading. This was done as
part of GSoC2014, Tilman Hausherr is the mentor.
- Author:
- Shaola Ren
-
Field Summary
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
Constructor Summary
ConstructorsConstructorDescriptionType7ShadingPaint
(PDShadingType7 shading, Matrix ctm, int pageHeight) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) int
-
Constructor Details
-
Type7ShadingPaint
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
-