railo.runtime.img.filter
Class RotateFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.TransformFilter
          extended by railo.runtime.img.filter.RotateFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class RotateFilter
extends TransformFilter
implements DynFiltering

A filter which rotates an image. These days this is easier done with Java2D, but this filter remains.


Field Summary
 
Fields inherited from class railo.runtime.img.filter.TransformFilter
BILINEAR, NEAREST_NEIGHBOUR
 
Constructor Summary
RotateFilter()
          Construct a RotateFilter.
RotateFilter(float angle)
          Construct a RotateFilter.
RotateFilter(float angle, boolean resize)
          Construct a RotateFilter.
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 float getAngle()
          Returns the angle of rotation.
 void setAngle(float angle)
          Specifies the angle of rotation.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.TransformFilter
filter, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RotateFilter

public RotateFilter()
Construct a RotateFilter.


RotateFilter

public RotateFilter(float angle)
Construct a RotateFilter.

Parameters:
angle - the angle to rotate

RotateFilter

public RotateFilter(float angle,
                    boolean resize)
Construct a RotateFilter.

Parameters:
angle - the angle to rotate
resize - true if the output image should be resized
Method Detail

setAngle

public void setAngle(float angle)
Specifies the angle of rotation.

Parameters:
angle - the angle of rotation.
See Also:
getAngle()

getAngle

public float getAngle()
Returns the angle of rotation.

Returns:
the angle of rotation.
See Also:
setAngle(float)

toString

public String toString()
Overrides:
toString in class Object

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Overrides:
filter in class TransformFilter
Throws:
PageException


Copyright © 2012 Railo