public class PolarFilter extends TransformFilter
| 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, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZEROfilterListener| 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) |
int |
getType()
Get the distortion type.
|
void |
setType(int type)
Set the distortion type.
|
String |
toString() |
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point.
|
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpaceclone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGBpublic 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 BufferedImageOpfilter in class TransformFilterpublic void setType(int type)
type - the distortion typegetType()public int getType()
setType(int)protected void transformInverse(int x,
int y,
float[] out)
TransformFiltertransformInverse in class TransformFilterx - the X position of the pixel in the output imagey - the Y position of the pixel in the output imageout - the position of the pixel in the input imageCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.