lib.transformations
Class RotateTransform

java.lang.Object
  extended by lib.transformations.ImageTransform
      extended by 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

Constructor Summary
RotateTransform(double degrees)
           
RotateTransform(double degrees, boolean preserveAlpha)
           
RotateTransform(double degrees, double pointx, double pointy)
           
RotateTransform(double degrees, double pointx, double pointy, boolean preserveAlpha)
           
 
Method Summary
 java.awt.image.BufferedImage transform(java.awt.image.BufferedImage inputimage)
           
 
Methods inherited from class lib.transformations.ImageTransform
affineTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 degrees
pointx - the x coordinate of the origin of the rotation
pointy - the y coordinate of the origin of the rotation
preserveAlpha - whether to preserve the alpha channel or not
Method Detail

transform

public java.awt.image.BufferedImage transform(java.awt.image.BufferedImage inputimage)