public abstract class BinaryFilter extends WholeImageFilter implements DynFiltering
Constructor and Description |
---|
BinaryFilter() |
Modifier and Type | Method and Description |
---|---|
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) |
filter
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public BinaryFilter()
public void setIterations(int iterations)
iterations
- the number of iterationsgetIterations()
public int getIterations()
setIterations(int)
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(lucee.runtime.img.filter.Colormap)
public void setNewColor(int newColor)
public int getNewColor()
public void setBlackFunction(BinaryFunction blackFunction)
public BinaryFunction getBlackFunction()
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class WholeImageFilter
PageException
Copyright © 2015 Lucee