railo.runtime.img.filter
Class InterpolateFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.InterpolateFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class InterpolateFilter
extends AbstractBufferedImageOp
implements DynFiltering

A filter which interpolates between 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 filter(BufferedImage src, Struct parameters)
           
 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 railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterpolateFilter

public InterpolateFilter()
Method Detail

setDestination

public void setDestination(BufferedImage destination)
Set the destination image.

Parameters:
destination - the destination image
See Also:
getDestination()

getDestination

public 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 BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp

toString

public String toString()
Overrides:
toString in class Object

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Throws:
PageException


Copyright © 2012 Railo