railo.runtime.img.filter
Class BinaryFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.WholeImageFilter
          extended by railo.runtime.img.filter.BinaryFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering
Direct Known Subclasses:
DilateFilter, ErodeFilter, LifeFilter, OutlineFilter, SkeletonFilter

public abstract class BinaryFilter
extends WholeImageFilter
implements DynFiltering

The superclass for some of the filters which work on binary images.


Constructor Summary
BinaryFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 BinaryFunction getBlackFunction()
           
 Colormap getColormap()
          Get the colormap to be used for the filter.
 int getIterations()
          Get the number of iterations the effect is performed.
 int getNewColor()
           
 void setBlackFunction(BinaryFunction blackFunction)
           
 void setColormap(Colormap colormap)
          Set the colormap to be used for the filter.
 void setIterations(int iterations)
          Set the number of iterations the effect is performed.
 void setNewColor(int newColor)
           
 
Methods inherited from class railo.runtime.img.filter.WholeImageFilter
filter
 
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, toString, wait, wait, wait
 

Constructor Detail

BinaryFilter

public BinaryFilter()
Method Detail

setIterations

public void setIterations(int iterations)
Set the number of iterations the effect is performed.

Parameters:
iterations - the number of iterations
See Also:
getIterations()

getIterations

public int getIterations()
Get the number of iterations the effect is performed.

Returns:
the number of iterations
See Also:
setIterations(int)

setColormap

public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.

Parameters:
colormap - the colormap
See Also:
getColormap()

getColormap

public Colormap getColormap()
Get the colormap to be used for the filter.

Returns:
the colormap
See Also:
setColormap(railo.runtime.img.filter.Colormap)

setNewColor

public void setNewColor(int newColor)

getNewColor

public int getNewColor()

setBlackFunction

public void setBlackFunction(BinaryFunction blackFunction)

getBlackFunction

public BinaryFunction getBlackFunction()

filter

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


Copyright © 2012 Railo