com.jhlabs.image
Class InterpolateFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by 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
InterpolateFilter()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterpolateFilter

public InterpolateFilter()
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 class java.lang.Object