All Packages Class Hierarchy This Package Previous Next Index
Class com.jhlabs.image.TwirlFilter
java.lang.Object
|
+----java.awt.image.ImageFilter
|
+----com.jhlabs.image.WholeImageFilter
|
+----com.jhlabs.image.TransformFilter
|
+----com.jhlabs.image.TwirlFilter
- public class TwirlFilter
- extends com.jhlabs.image.TransformFilter
A Filter which distorts an image by twisting it from the centre out.
The twisting is centred at the centre of the image and extends out to the smallest of
the width and height. Pixels outside this radius are unaffected.
-
TwirlFilter()
- Construct a TwirlFilter with no distortion.
-
getAngle()
- Get the angle of twist.
-
setAngle(double)
- Set the angle of twirl in radians.
-
setDimensions(int, int)
-
-
toString()
-
-
transformInverse(int, int, double[])
-
TwirlFilter
public TwirlFilter()
- Construct a TwirlFilter with no distortion.
setAngle
public void setAngle(double angle)
- Set the angle of twirl in radians. 0 means no distortion.
- Parameters:
- angle - the angle of twirl. This is the angle by which pixels at the nearest edge of the image will move.
getAngle
public double getAngle()
- Get the angle of twist.
- Returns:
- the angle in radians.
setDimensions
public void setDimensions(int width,
int height)
- Overrides:
- setDimensions in class com.jhlabs.image.WholeImageFilter
transformInverse
protected void transformInverse(int x,
int y,
double out[])
- Overrides:
- transformInverse in class com.jhlabs.image.TransformFilter
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
All Packages Class Hierarchy This Package Previous Next Index