com.jhlabs.image
Class PolarFilter
- BufferedImageOp, Cloneable
A filter which distorts and image by performing coordinate conversions between rectangular and polar coordinates.
INVERT_IN_CIRCLE
public static final int INVERT_IN_CIRCLE
Invert the image in a circle.
POLAR_TO_RECT
public static final int POLAR_TO_RECT
Convert from polar to rectangular coordinates.
RECT_TO_POLAR
public static final int RECT_TO_POLAR
Convert from rectangular to polar coordinates.
PolarFilter
public PolarFilter()
Construct a PolarFilter.
PolarFilter
public PolarFilter(int type)
Construct a PolarFilter.
type
- the distortion type
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- filter in interface TransformFilter
getRelativeCentreX
public float getRelativeCentreX()
getRelativeCentreY
public float getRelativeCentreY()
getType
public int getType()
Get the distortion type.
setRelativeCentreX
public void setRelativeCentreX(float relativeCentreX)
setRelativeCentreY
public void setRelativeCentreY(float relativeCentreY)
setType
public void setType(int type)
Set the distortion type.
type
- the distortion type
toString
public String toString()