net.aerith.misao.image.filter
Class ReverseFilter

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

public class ReverseFilter
extends Filter

The ReverseFilter is an image processing filter to reverse the image vertically or horizontally. The result is stored in the original image.


Field Summary
protected  int direction
          The direction.
static int HORIZONTALLY
          The number which indicates to reverse horizontally.
static int VERTICALLY
          The number which indicates to reverse vertically.
 
Fields inherited from class net.aerith.misao.image.filter.Filter
monitor_set
 
Constructor Summary
ReverseFilter(int direction)
          Constructs a filter.
 
Method Summary
 MonoImage operate(MonoImage image)
          Operates the image processing filter and stores the result into the original image buffer.
 
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

direction

protected int direction
The direction.

VERTICALLY

public static final int VERTICALLY
The number which indicates to reverse vertically.

HORIZONTALLY

public static final int HORIZONTALLY
The number which indicates to reverse horizontally.
Constructor Detail

ReverseFilter

public ReverseFilter(int direction)
Constructs a filter.
Parameters:
direction - the direction.
Method Detail

operate

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