public class TwirlFilter extends TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, transformedSpace, WRAP, ZERO
Constructor and Description |
---|
TwirlFilter()
Construct a TwirlFilter with no distortion.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
float |
getAngle()
Get the angle of twist.
|
java.awt.geom.Point2D |
getCentre() |
float |
getCentreX() |
float |
getCentreY() |
float |
getRadius() |
void |
setAngle(float angle)
Set the angle of twirl in radians.
|
void |
setCentre(java.awt.geom.Point2D centre) |
void |
setCentreX(float centreX) |
void |
setCentreY(float centreY) |
void |
setRadius(float radius) |
java.lang.String |
toString() |
protected void |
transformInverse(int x,
int y,
float[] out) |
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public void setAngle(float angle)
angle
- the angle of twirl. This is the angle by which pixels at the nearest edge of the image will move.public float getAngle()
public void setCentreX(float centreX)
public float getCentreX()
public void setCentreY(float centreY)
public float getCentreY()
public void setCentre(java.awt.geom.Point2D centre)
public java.awt.geom.Point2D getCentre()
public void setRadius(float radius)
public float getRadius()
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
filter
in interface java.awt.image.BufferedImageOp
filter
in class TransformFilter
protected void transformInverse(int x, int y, float[] out)
transformInverse
in class TransformFilter
public java.lang.String toString()
toString
in class java.lang.Object