com.jhlabs.image

Class InterpolateFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class InterpolateFilter
extends AbstractBufferedImageOp

A filter which interpolates betwen two images. You can set the interpolation factor outside the range 0 to 1 to extrapolate images.

Constructor Summary

InterpolateFilter()

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
BufferedImage
getDestination()
Get the destination image.
float
getInterpolation()
Get the interpolation factor.
void
setDestination(BufferedImage destination)
Set the destination image.
void
setInterpolation(float interpolation)
Set the interpolation factor.
String
toString()

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

InterpolateFilter

public InterpolateFilter()

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)

getDestination

public BufferedImage getDestination()
Get the destination image.
Returns:
the destination image

getInterpolation

public float getInterpolation()
Get the interpolation factor.
Returns:
the interpolation factor

setDestination

public void setDestination(BufferedImage destination)
Set the destination image.
Parameters:
destination - the destination image

setInterpolation

public void setInterpolation(float interpolation)
Set the interpolation factor.
Parameters:
interpolation - the interpolation factor

toString

public String toString()