Package com.jhlabs.image
Class InterpolateFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.InterpolateFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which interpolates betwen two images. You can set the interpolation factor outside the range 0 to 1
to extrapolate images.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) Get the destination image.float
Get the interpolation factor.void
setDestination
(BufferedImage destination) Set the destination image.void
setInterpolation
(float interpolation) Set the interpolation factor.toString()
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
InterpolateFilter
public InterpolateFilter()
-
-
Method Details
-
setDestination
Set the destination image.- Parameters:
destination
- the destination image- See Also:
-
getDestination
Get the destination image.- Returns:
- the destination image
- See Also:
-
setInterpolation
public void setInterpolation(float interpolation) Set the interpolation factor.- Parameters:
interpolation
- the interpolation factor- See Also:
-
getInterpolation
public float getInterpolation()Get the interpolation factor.- Returns:
- the interpolation factor
- See Also:
-
filter
-
toString
-