Package org.apache.pdfbox.rendering
Class PageDrawer.TransparencyGroup
- java.lang.Object
-
- org.apache.pdfbox.rendering.PageDrawer.TransparencyGroup
-
- Enclosing class:
- PageDrawer
private final class PageDrawer.TransparencyGroup extends java.lang.Object
Transparency group.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TransparencyGroup(PDTransparencyGroup form, boolean isSoftMask, Matrix ctm, PDColor backdropColor)
Creates a buffered image for a transparency group result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.awt.image.BufferedImage
create2ByteGrayAlphaImage(int width, int height)
PDRectangle
getBBox()
java.awt.geom.Rectangle2D
getBounds()
java.awt.image.BufferedImage
getImage()
private boolean
isGray(PDColorSpace colorSpace)
-
-
-
Field Detail
-
image
private final java.awt.image.BufferedImage image
-
bbox
private final PDRectangle 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
-
scaleX
private final float scaleX
-
scaleY
private final float scaleY
-
-
Constructor Detail
-
TransparencyGroup
private TransparencyGroup(PDTransparencyGroup form, boolean isSoftMask, Matrix ctm, PDColor backdropColor) throws java.io.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:
java.io.IOException
-
-
Method Detail
-
create2ByteGrayAlphaImage
private java.awt.image.BufferedImage create2ByteGrayAlphaImage(int width, int height)
-
isGray
private boolean isGray(PDColorSpace colorSpace)
-
getImage
public java.awt.image.BufferedImage getImage()
-
getBBox
public PDRectangle getBBox()
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
-
-