public class OpacityFilter extends PointFilter
Modifier and Type | Field and Description |
---|---|
private int |
opacity |
private int |
opacity24 |
canFilterIndexColorModel
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 |
---|---|
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
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses