j2d.warp
Class ScaleTranslateProcessor

java.lang.Object
  extended by j2d.warp.ScaleTranslateProcessor
All Implemented Interfaces:
ImageProcessorInterface, java.io.Serializable

public class ScaleTranslateProcessor
extends java.lang.Object
implements ImageProcessorInterface

Scales an image using the area-averaging algorithm, which can't be done with AffineTransformOp.

See Also:
Serialized Form

Constructor Summary
ScaleTranslateProcessor()
           
ScaleTranslateProcessor(float sx, float sy, float tx, float ty)
           
 
Method Summary
 float getSx()
           
 float getSy()
           
 float getTx()
           
 float getTy()
           
 java.awt.Image process(java.awt.Image image)
          a basic garbage in, garbage out processor.
 void setSx(float sx)
           
 void setSy(float sy)
           
 void setTx(float tx)
           
 void setTy(float ty)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScaleTranslateProcessor

public ScaleTranslateProcessor()

ScaleTranslateProcessor

public ScaleTranslateProcessor(float sx,
                               float sy,
                               float tx,
                               float ty)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

process

public java.awt.Image process(java.awt.Image image)
Description copied from interface: ImageProcessorInterface
a basic garbage in, garbage out processor.

Specified by:
process in interface ImageProcessorInterface
Parameters:
image - input image
Returns:
output image

getSx

public float getSx()

setSx

public void setSx(float sx)

getSy

public float getSy()

setSy

public void setSy(float sy)

getTx

public float getTx()

setTx

public void setTx(float tx)

getTy

public float getTy()

setTy

public void setTy(float ty)