Package org.apache.pdfbox.rendering
Class PageDrawer.TransparencyGroup
java.lang.Object
org.apache.pdfbox.rendering.PageDrawer.TransparencyGroup
- Enclosing class:
- PageDrawer
Transparency group.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PDRectangleprivate final intprivate final BufferedImageprivate final intprivate final intprivate final intprivate final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTransparencyGroup(PDTransparencyGroup form, boolean isSoftMask, Matrix ctm, PDColor backdropColor) Creates a buffered image for a transparency group result. -
Method Summary
Modifier and TypeMethodDescriptionprivate BufferedImagecreate2ByteGrayAlphaImage(int width, int height) (package private) PDRectanglegetBBox()(package private) Rectangle2D(package private) BufferedImagegetImage()private booleanisGray(PDColorSpace colorSpace)
-
Field Details
-
image
-
bbox
-
minX
private final int minX -
minY
private final int minY -
maxX
private final int maxX -
maxY
private final int maxY -
width
private final int width -
height
private final int height
-
-
Constructor Details
-
TransparencyGroup
private TransparencyGroup(PDTransparencyGroup form, boolean isSoftMask, Matrix ctm, PDColor backdropColor) throws IOException Creates a buffered image for a transparency group result.- Parameters:
form- the transparency group of the form or soft mask.isSoftMask- true if this is a soft mask.ctm- the relevant current transformation matrix. For soft masks, this is the CTM at the time the soft mask is set (not at the time the soft mask is used for fill/stroke!), for forms, this is the CTM at the time the form is invoked.backdropColor- the color according to the /bc entry to be used for luminosity soft masks.- Throws:
IOException
-
-
Method Details
-
create2ByteGrayAlphaImage
-
isGray
-
getImage
BufferedImage getImage() -
getBBox
PDRectangle getBBox() -
getBounds
Rectangle2D getBounds()
-