railo.runtime.img.filter
Class ScaleFilter
java.lang.Object
railo.runtime.img.filter.AbstractBufferedImageOp
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. |
ScaleFilter
public ScaleFilter()
- Construct a ScaleFilter.
ScaleFilter
public ScaleFilter(int width,
int height)
- Construct a ScaleFilter.
- Parameters:
width
- the width to scale toheight
- the height to scale to
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