lib.transformations
Class ScaleTransform
java.lang.Object
lib.transformations.ImageTransform
lib.transformations.ScaleTransform
- All Implemented Interfaces:
- java.io.Serializable, Transformer<java.awt.image.BufferedImage>
public class ScaleTransform
- extends ImageTransform
functor class to affineScale an image
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScaleTransform
public ScaleTransform(double scalex,
double scaley)
ScaleTransform
public ScaleTransform(double scalex,
double scaley,
boolean preserveAlpha)
- Parameters:
scalex
- the factor by which coordinates are scaled along the X axis directionscaley
- the factor by which coordinates are scaled along the Y axis directionpreserveAlpha
- whether to preserve the alpha channel or not
transform
public java.awt.image.BufferedImage transform(java.awt.image.BufferedImage inputimage)
getScalex
public double getScalex()
getScaley
public double getScaley()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object