public abstract class TransformFilter extends AbstractBufferedImageOp implements DynFiltering
Modifier and Type | Field and Description |
---|---|
static int |
BILINEAR
Use bilinear interpolation.
|
static int |
NEAREST_NEIGHBOUR
Use nearest-neighbour interpolation.
|
Constructor and Description |
---|
TransformFilter() |
TransformFilter(int edgeAction) |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public static final int NEAREST_NEIGHBOUR
public static final int BILINEAR
public TransformFilter()
public TransformFilter(int edgeAction)
public void setEdgeAction(String edgeAction) throws ExpressionException
edgeAction
- the actionExpressionException
public int getEdgeAction()
setEdgeAction(java.lang.String)
public void setInterpolation(String interpolation) throws ExpressionException
interpolation
- one of NEAREST_NEIGHBOUR or BILINEARExpressionException
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
Copyright © 2015 Lucee