public class OpacityFilter extends PointFilter implements DynFiltering
Constructor and Description |
---|
OpacityFilter()
Construct an OpacityFilter with 50% opacity.
|
OpacityFilter(int opacity)
Construct an OpacityFilter with the given opacity (alpha).
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters) |
int |
filterRGB(int x,
int y,
int rgb) |
int |
getOpacity()
Get the opacity setting.
|
void |
setOpacity(int opacity)
Set the opacity.
|
String |
toString() |
filter, setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public OpacityFilter()
public OpacityFilter(int opacity)
opacity
- the opacity (alpha) in the range 0..255public void setOpacity(int opacity)
opacity
- the opacity (alpha) in the range 0..255getOpacity()
public int getOpacity()
setOpacity(int)
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class PointFilter
PageException
Copyright © 2015 Lucee