railo.runtime.img.filter
Class DilateFilter

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

public class DilateFilter
extends BinaryFilter
implements DynFiltering

Given a binary image, this filter performs binary dilation, setting all added pixels to the given 'new' color.


Constructor Summary
DilateFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int getThreshold()
          Return the threshold - the number of neighbouring pixels for dilation to occur.
 void setThreshold(int threshold)
          Set the threshold - the number of neighbouring pixels for dilation to occur.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.BinaryFilter
getBlackFunction, getColormap, getIterations, getNewColor, setBlackFunction, setColormap, setIterations, setNewColor
 
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, wait, wait, wait
 

Constructor Detail

DilateFilter

public DilateFilter()
Method Detail

setThreshold

public void setThreshold(int threshold)
Set the threshold - the number of neighbouring pixels for dilation to occur.

Parameters:
threshold - the new threshold
See Also:
getThreshold()

getThreshold

public int getThreshold()
Return the threshold - the number of neighbouring pixels for dilation to occur.

Returns:
the current threshold
See Also:
setThreshold(int)

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
Overrides:
filter in class BinaryFilter
Throws:
PageException


Copyright © 2012 Railo