railo.runtime.img.filter
Class BicubicScaleFilter

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

public class BicubicScaleFilter
extends AbstractBufferedImageOp
implements DynFiltering

Scales an image using bi-cubic interpolation, which can't be done with AffineTransformOp.


Constructor Summary
BicubicScaleFilter()
          Construct a BicubicScaleFilter which resizes to 32x32 pixels.
BicubicScaleFilter(int width, int height)
          Constructor for a filter which scales the input image to the given width and height using bicubic interpolation.
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 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

BicubicScaleFilter

public BicubicScaleFilter()
Construct a BicubicScaleFilter which resizes to 32x32 pixels.


BicubicScaleFilter

public BicubicScaleFilter(int width,
                          int height)
Constructor for a filter which scales the input image to the given width and height using bicubic interpolation. Unfortunately, it appears that bicubic actually looks worse than bilinear interpolation on most Java implementations, but you can be the judge.

Parameters:
width - the width of the output image
height - the height of the output image
Method Detail

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