Package com.jhlabs.image
Class InterpolateFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.InterpolateFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
,java.lang.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
Constructors Constructor Description InterpolateFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
java.awt.image.BufferedImage
getDestination()
Get the destination image.float
getInterpolation()
Get the interpolation factor.void
setDestination(java.awt.image.BufferedImage destination)
Set the destination image.void
setInterpolation(float interpolation)
Set the interpolation factor.java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setDestination
public void setDestination(java.awt.image.BufferedImage destination)
Set the destination image.- Parameters:
destination
- the destination image- See Also:
getDestination()
-
getDestination
public java.awt.image.BufferedImage getDestination()
Get the destination image.- Returns:
- the destination image
- See Also:
setDestination(java.awt.image.BufferedImage)
-
setInterpolation
public void setInterpolation(float interpolation)
Set the interpolation factor.- Parameters:
interpolation
- the interpolation factor- See Also:
getInterpolation()
-
getInterpolation
public float getInterpolation()
Get the interpolation factor.- Returns:
- the interpolation factor
- See Also:
setInterpolation(float)
-
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 classjava.lang.Object
-
-