private final class PageDrawer.TransparencyGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PDRectangle |
bbox |
private int |
height |
private java.awt.image.BufferedImage |
image |
private int |
maxX |
private int |
maxY |
private int |
minX |
private int |
minY |
private float |
scaleX |
private float |
scaleY |
private int |
width |
Modifier | Constructor and Description |
---|---|
private |
TransparencyGroup(PDTransparencyGroup form,
boolean isSoftMask,
Matrix ctm,
PDColor backdropColor)
Creates a buffered image for a transparency group result.
|
Modifier and Type | Method and 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) |
private final java.awt.image.BufferedImage image
private final PDRectangle bbox
private final int minX
private final int minY
private final int maxX
private final int maxY
private final int width
private final int height
private final float scaleX
private final float scaleY
private TransparencyGroup(PDTransparencyGroup form, boolean isSoftMask, Matrix ctm, PDColor backdropColor) throws java.io.IOException
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.java.io.IOException
private java.awt.image.BufferedImage create2ByteGrayAlphaImage(int width, int height)
private boolean isGray(PDColorSpace colorSpace)
public java.awt.image.BufferedImage getImage()
public PDRectangle getBBox()
public java.awt.geom.Rectangle2D getBounds()