net.aerith.misao.image.filter
Class RotateAtRightAnglesFilter

java.lang.Object
  |
  +--net.aerith.misao.image.filter.Filter
        |
        +--net.aerith.misao.image.filter.RotateAtRightAnglesFilter

public class RotateAtRightAnglesFilter
extends Filter

The RotateAtRightAnglesFilter is an image processing filter to rotate the image at right angles. The image is rotated in clockwise direction. The result is stored in the new image.


Field Summary
protected  double rotation_angle
          The rotation angle in degree.
 
Fields inherited from class net.aerith.misao.image.filter.Filter
monitor_set
 
Constructor Summary
RotateAtRightAnglesFilter()
          Constructs a filter.
RotateAtRightAnglesFilter(double angle)
          Constructs a filter with rotation angle.
 
Method Summary
 MonoImage operate(MonoImage image)
          Operates the image processing filter and creates the new image buffer.
 void setRotationAngle(double new_angle)
          Sets the angle to rotate in degree.
 
Methods inherited from class net.aerith.misao.image.filter.Filter
addMonitor, setMonitor
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

rotation_angle

protected double rotation_angle
The rotation angle in degree.
Constructor Detail

RotateAtRightAnglesFilter

public RotateAtRightAnglesFilter()
Constructs a filter.

RotateAtRightAnglesFilter

public RotateAtRightAnglesFilter(double angle)
Constructs a filter with rotation angle. The image is rotated in clockwise direction.
Parameters:
angle - the angle to rotate in degree.
Method Detail

setRotationAngle

public void setRotationAngle(double new_angle)
Sets the angle to rotate in degree. The image is rotated in clockwise direction.
Parameters:
new_angle - the angle to rotate in degree.

operate

public MonoImage operate(MonoImage image)
Operates the image processing filter and creates the new image buffer.
Overrides:
operate in class Filter
Parameters:
image - the original image to process.
Returns:
the new image buffer.