railo.runtime.img.filter
Class ScaleFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.ScaleFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class ScaleFilter
extends AbstractBufferedImageOp
implements DynFiltering

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


Constructor Summary
ScaleFilter()
          Construct a ScaleFilter.
ScaleFilter(int width, int height)
          Construct a ScaleFilter.
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScaleFilter

public ScaleFilter()
Construct a ScaleFilter.


ScaleFilter

public ScaleFilter(int width,
                   int height)
Construct a ScaleFilter.

Parameters:
width - the width to scale to
height - the height to scale to
Method Detail

setWidth

public void setWidth(int width)
Parameters:
width - the width to set

setHeight

public void setHeight(int height)
Parameters:
height - the height to set

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp

toString

public String toString()
Overrides:
toString in class Object

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Throws:
PageException


Copyright © 2012 Railo