|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.PointFilter
railo.runtime.img.filter.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 | |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
int |
filterRGB(int x,
int y,
int rgb)
|
int |
getOpacity()
Get the opacity setting. |
void |
setOpacity(int opacity)
Set the opacity. |
String |
toString()
|
Methods inherited from class railo.runtime.img.filter.PointFilter |
---|
filter, setDimensions |
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, 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
public String toString()
toString
in class Object
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class PointFilter
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |