net.aerith.misao.image.filter
Class RescaleFilter

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

public class RescaleFilter
extends Filter

The RescaleFilter is an image processing filter to rescale the image into the specified size and creates a new image buffer. If the size is not specified, the new image is the same as the original size. The result is stored in the new image.


Field Summary
protected  Size size
          The new size to rescale.
 
Fields inherited from class net.aerith.misao.image.filter.Filter
monitor_set
 
Constructor Summary
RescaleFilter()
          Constructs a filter.
RescaleFilter(Size new_size)
          Constructs a filter with new size.
 
Method Summary
 MonoImage operate(MonoImage image)
          Operates the image processing filter and creates the new image buffer.
 void setSize(Size new_size)
          Sets the new size to rescale.
 
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

size

protected Size size
The new size to rescale.
Constructor Detail

RescaleFilter

public RescaleFilter()
Constructs a filter.

RescaleFilter

public RescaleFilter(Size new_size)
Constructs a filter with new size.
Parameters:
new_size - the new size to rescale.
Method Detail

setSize

public void setSize(Size new_size)
Sets the new size to rescale.
Parameters:
new_size - the new size to rescale.

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.