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.


Constructor Index

 o TwirlFilter()
Construct a TwirlFilter with no distortion.

Method Index

 o getAngle()
Get the angle of twist.
 o setAngle(double)
Set the angle of twirl in radians.
 o setDimensions(int, int)
 o toString()
 o transformInverse(int, int, double[])

Constructors

 o TwirlFilter
 public TwirlFilter()
Construct a TwirlFilter with no distortion.

Methods

 o 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.
 o getAngle
 public double getAngle()
Get the angle of twist.

Returns:
the angle in radians.
 o setDimensions
 public void setDimensions(int width,
                           int height)
Overrides:
setDimensions in class com.jhlabs.image.WholeImageFilter
 o transformInverse
 protected void transformInverse(int x,
                                 int y,
                                 double out[])
Overrides:
transformInverse in class com.jhlabs.image.TransformFilter
 o toString
 public java.lang.String toString()
Overrides:
toString in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index