railo.runtime.img.filter
Class DilateFilter
java.lang.Object
railo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.WholeImageFilter
railo.runtime.img.filter.BinaryFilter
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.
DilateFilter
public DilateFilter()
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