class SoftMask
extends java.lang.Object
implements java.awt.Paint
Modifier and Type | Class and Description |
---|---|
private class |
SoftMask.SoftPaintContext |
Modifier and Type | Field and Description |
---|---|
private static java.awt.image.ColorModel |
ARGB_COLOR_MODEL |
private java.awt.geom.Rectangle2D |
bboxDevice |
private int |
bc |
private java.awt.image.BufferedImage |
mask |
private java.awt.Paint |
paint |
private PDFunction |
transferFunction |
Constructor and Description |
---|
SoftMask(java.awt.Paint paint,
java.awt.image.BufferedImage mask,
java.awt.geom.Rectangle2D bboxDevice,
PDColor backdropColor,
PDFunction transferFunction)
Creates a new soft mask paint.
|
Modifier and Type | Method and Description |
---|---|
java.awt.PaintContext |
createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints) |
int |
getTransparency() |
private static final java.awt.image.ColorModel ARGB_COLOR_MODEL
private final java.awt.Paint paint
private final java.awt.image.BufferedImage mask
private final java.awt.geom.Rectangle2D bboxDevice
private int bc
private final PDFunction transferFunction
SoftMask(java.awt.Paint paint, java.awt.image.BufferedImage mask, java.awt.geom.Rectangle2D bboxDevice, PDColor backdropColor, PDFunction transferFunction)
paint
- underlying paint.mask
- soft maskbboxDevice
- bbox of the soft mask in the underlying Graphics2D device spacebackdropColor
- the color to be used outside the transparency group’s bounding box; if
null, black will be used.transferFunction
- the transfer function, may be null.public java.awt.PaintContext createContext(java.awt.image.ColorModel cm, java.awt.Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)
createContext
in interface java.awt.Paint
public int getTransparency()
getTransparency
in interface java.awt.Transparency