lib.transformations
Class RotateTransform
java.lang.Object
lib.transformations.ImageTransform
lib.transformations.RotateTransform
- All Implemented Interfaces:
- java.io.Serializable, Transformer<java.awt.image.BufferedImage>
public class RotateTransform
- extends ImageTransform
functor class to rotate an image by the given degrees
- See Also:
- Serialized Form
Method Summary |
java.awt.image.BufferedImage |
transform(java.awt.image.BufferedImage inputimage)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotateTransform
public RotateTransform(double degrees)
RotateTransform
public RotateTransform(double degrees,
boolean preserveAlpha)
RotateTransform
public RotateTransform(double degrees,
double pointx,
double pointy)
RotateTransform
public RotateTransform(double degrees,
double pointx,
double pointy,
boolean preserveAlpha)
- Parameters:
degrees
- the angle of rotation measured in degreespointx
- the x coordinate of the origin of the rotationpointy
- the y coordinate of the origin of the rotationpreserveAlpha
- whether to preserve the alpha channel or not
transform
public java.awt.image.BufferedImage transform(java.awt.image.BufferedImage inputimage)