public class ShapeFilter extends WholeImageFilter implements DynFiltering
Modifier and Type | Field and Description |
---|---|
static int |
CIRCLE_DOWN |
static int |
CIRCLE_UP |
static int |
LINEAR |
static int |
SMOOTH |
Constructor and Description |
---|
ShapeFilter() |
Modifier and Type | Method and Description |
---|---|
int |
distanceMap(int[] map,
int width,
int height) |
BufferedImage |
filter(BufferedImage src,
Struct parameters) |
Colormap |
getColormap()
Get the colormap to be used for the filter.
|
float |
getFactor() |
boolean |
getInvert() |
boolean |
getMerge() |
int |
getType() |
boolean |
getUseAlpha() |
void |
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
|
void |
setFactor(float factor) |
void |
setInvert(boolean invert) |
void |
setMerge(boolean merge) |
void |
setType(int type) |
void |
setUseAlpha(boolean useAlpha) |
String |
toString() |
filter
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public static final int LINEAR
public static final int CIRCLE_UP
public static final int CIRCLE_DOWN
public static final int SMOOTH
public ShapeFilter()
public void setFactor(float factor)
public float getFactor()
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(lucee.runtime.img.filter.Colormap)
public void setUseAlpha(boolean useAlpha)
public boolean getUseAlpha()
public void setType(int type)
public int getType()
public void setInvert(boolean invert)
public boolean getInvert()
public void setMerge(boolean merge)
public boolean getMerge()
public int distanceMap(int[] map, int width, int height)
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class WholeImageFilter
PageException
Copyright © 2015 Lucee