|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.OpacityFilter
public class OpacityFilter
Sets the opacity (alpha) of every pixel in an image to a constant value.
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. |
java.lang.String |
toString()
|
Methods inherited from class com.jhlabs.image.PointFilter |
---|
filter, setDimensions |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpacityFilter()
public OpacityFilter(int opacity)
Method Detail |
---|
public void setOpacity(int opacity)
opacity
- the opacity (alpha) in the range 0..255public int getOpacity()
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |