j2d.warp
Class ScaleTranslateProcessor
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScaleTranslateProcessor
public ScaleTranslateProcessor()
ScaleTranslateProcessor
public ScaleTranslateProcessor(float sx,
float sy,
float tx,
float ty)
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)