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 PDRectangle
private final int
private final BufferedImage
private final int
private final int
private final int
private final int
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TransparencyGroup
(PDTransparencyGroup form, boolean isSoftMask, Matrix ctm, PDColor backdropColor) Creates a buffered image for a transparency group result. -
Method Summary
Modifier and TypeMethodDescriptionprivate BufferedImage
create2ByteGrayAlphaImage
(int width, int height) (package private) PDRectangle
getBBox()
(package private) Rectangle2D
(package private) BufferedImage
getImage()
private boolean
isGray
(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()
-