public class ShapeFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
static int |
CIRCLE_DOWN |
static int |
CIRCLE_UP |
protected Colormap |
colormap |
static int |
LINEAR |
static int |
SMOOTH |
originalSpace, transformedSpace
filterListener
Constructor and Description |
---|
ShapeFilter() |
Modifier and Type | Method and Description |
---|---|
int |
distanceMap(int[] map,
int width,
int height) |
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
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, transformSpace
clone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
public static final int LINEAR
public static final int CIRCLE_UP
public static final int CIRCLE_DOWN
public static final int SMOOTH
protected Colormap colormap
public void setFactor(float factor)
public float getFactor()
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(org.zimowski.bambi.jhlabs.image.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()
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
WholeImageFilter
filterPixels
in class WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output boundspublic int distanceMap(int[] map, int width, int height)
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.