public class TwirlFilter extends TransformFilter
CLAMP, edgeAction, WRAP, ZEROcanFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace| Constructor and Description |
|---|
TwirlFilter()
Construct a TwirlFilter with no distortion.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAngle()
Get the angle of twist.
|
void |
setAngle(float angle)
Set the angle of twirl in radians. 0 means no distortion.
|
void |
setDimensions(int width,
int height) |
java.lang.String |
toString() |
protected void |
transformInverse(int x,
int y,
float[] out) |
getEdgeAction, imageComplete, setEdgeAction, transformSpacegetTransformedSpace, setColorModel, setPixels, setPixelspublic 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 setDimensions(int width,
int height)
setDimensions in interface java.awt.image.ImageConsumersetDimensions in class WholeImageFilterprotected void transformInverse(int x,
int y,
float[] out)
transformInverse in class TransformFilterpublic java.lang.String toString()
toString in class java.lang.Object