j2d.filters
Class BicubicScaleFilter

java.lang.Object
  extended by j2d.filters.AbstractBufferedImageOp
      extended by j2d.filters.BicubicScaleFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable

public class BicubicScaleFilter
extends AbstractBufferedImageOp

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

See Also:
Serialized Form

Constructor Summary
BicubicScaleFilter()
           
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
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 int getHeight()
           
 int getWidth()
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 java.lang.String toString()
           
 
Methods inherited from class j2d.filters.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BicubicScaleFilter

public BicubicScaleFilter()

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.

Method Detail

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getHeight

public int getHeight()

setHeight

public void setHeight(int height)