lib.transformations
Class ScaleTransform

java.lang.Object
  extended by lib.transformations.ImageTransform
      extended by 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

Constructor Summary
ScaleTransform(double scalex, double scaley)
           
ScaleTransform(double scalex, double scaley, boolean preserveAlpha)
           
 
Method Summary
 double getScalex()
           
 double getScaley()
           
 java.lang.String toString()
           
 java.awt.image.BufferedImage transform(java.awt.image.BufferedImage inputimage)
           
 
Methods inherited from class lib.transformations.ImageTransform
affineTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 direction
scaley - the factor by which coordinates are scaled along the Y axis direction
preserveAlpha - whether to preserve the alpha channel or not
Method Detail

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