public class OpacityFilter extends PointFilter
canFilterIndexColorModel
filterListener
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, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, 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
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.