public class OpacityFilter extends PointFilter
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.
|
java.lang.String |
toString() |
filter, setDimensionsclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColorpublic 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 PointFilterpublic java.lang.String toString()
toString in class java.lang.Object