public class PolarFilter extends TransformFilter implements DynFiltering
Modifier and Type | Field and Description |
---|---|
static int |
INVERT_IN_CIRCLE
Invert the image in a circle.
|
static int |
POLAR_TO_RECT
Convert from polar to rectangular coordinates.
|
static int |
RECT_TO_POLAR
Convert from rectangular to polar coordinates.
|
BILINEAR, NEAREST_NEIGHBOUR
Constructor and Description |
---|
PolarFilter()
Construct a PolarFilter.
|
PolarFilter(int type)
Construct a PolarFilter.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
BufferedImage |
filter(BufferedImage src,
Struct parameters) |
int |
getType()
Get the distortion type.
|
void |
setType(String type)
Set the distortion type, valid values are
- RECT_TO_POLAR = Convert from rectangular to polar coordinates
- POLAR_TO_RECT = Convert from polar to rectangular coordinates
- INVERT_IN_CIRCLE = Invert the image in a circle
|
String |
toString() |
getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public static final int RECT_TO_POLAR
public static final int POLAR_TO_RECT
public static final int INVERT_IN_CIRCLE
public PolarFilter()
public PolarFilter(int type)
type
- the distortion typepublic BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class TransformFilter
public void setType(String type) throws ExpressionException
ExpressionException
public int getType()
setType(java.lang.String)
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class TransformFilter
PageException
Copyright © 2015 Lucee