|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.graphics.filters.AbstractBufferedImageOp com.alee.graphics.filters.PointFilter com.alee.graphics.filters.OpacityFilter
public class OpacityFilter
Sets the opacity (alpha) of every pixel in an image to a constant value.
Field Summary |
---|
Fields inherited from class com.alee.graphics.filters.PointFilter |
---|
canFilterIndexColorModel |
Constructor Summary | |
---|---|
OpacityFilter()
Construct an OpacityFilter with 50% opacity. |
|
OpacityFilter(int opacity)
Construct an OpacityFilter with the given opacity (alpha). |
Method Summary | |
---|---|
int |
filterRGB(int x,
int y,
int rgb)
|
int |
getOpacity()
Get the opacity setting. |
void |
setOpacity(int opacity)
Set the opacity. |
Methods inherited from class com.alee.graphics.filters.PointFilter |
---|
filter, setDimensions |
Methods inherited from class com.alee.graphics.filters.AbstractBufferedImageOp |
---|
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpacityFilter()
public OpacityFilter(int opacity)
opacity
- the opacity (alpha) in the range 0..255Method Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |