|
||||||||||
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.TransformFilter
public abstract class TransformFilter
An abstract superclass for filters which distort images in some way. The subclass only needs to override two methods to provide the mapping between source and destination pixels.
Field Summary | |
---|---|
static int |
BILINEAR
Use bilinear interpolation. |
static int |
NEAREST_NEIGHBOUR
Use nearest-neighbour interpolation. |
Constructor Summary | |
---|---|
TransformFilter()
|
|
TransformFilter(int edgeAction)
|
Method Summary | |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst)
|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
int |
getEdgeAction()
Get the action to perform for pixels off the edge of the image. |
int |
getInterpolation()
Get the type of interpolation to perform. |
void |
setEdgeAction(String edgeAction)
Set the action to perfomr for pixels off the image edges. |
void |
setInterpolation(String interpolation)
Set the type of interpolation to perform. |
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, toString, wait, wait, wait |
Field Detail |
---|
public static final int NEAREST_NEIGHBOUR
public static final int BILINEAR
Constructor Detail |
---|
public TransformFilter()
public TransformFilter(int edgeAction)
Method Detail |
---|
public void setEdgeAction(String edgeAction) throws ExpressionException
edgeAction
- the action
ExpressionException
public int getEdgeAction()
setEdgeAction(java.lang.String)
public void setInterpolation(String interpolation) throws ExpressionException
interpolation
- one of NEAREST_NEIGHBOUR or BILINEAR
ExpressionException
getInterpolation()
public int getInterpolation()
setInterpolation(java.lang.String)
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |