com.jhlabs.image
Class BicubicScaleFilter
- BufferedImageOp, Cloneable
public class BicubicScaleFilter
Scales an image using bi-cubic interpolation, which can't be done with AffineTransformOp.
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.
|
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
String | toString()
|
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.
width
- the width of the output imageheight
- the height of the output image
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
toString
public String toString()