org.apache.pdfbox.pdmodel.graphics.shading
Class Type7ShadingPaint
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.shading.Type7ShadingPaint
- All Implemented Interfaces:
- Paint, Transparency
public class Type7ShadingPaint
- extends Object
- implements Paint
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Type7ShadingPaint
public Type7ShadingPaint(PDShadingType7 shading,
Matrix ctm,
int pageHeight)
- Constructor.
- Parameters:
shading - the shading resourcesctm - current transformation matrixpageHeight - the height of the page
getTransparency
public int getTransparency()
-
- Specified by:
getTransparency in interface Transparency
createContext
public PaintContext createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
-
- Specified by:
createContext in interface Paint
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.