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| 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,
java.awt.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) |
java.lang.String |
toString() |
filter, transformSpaceclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColorpublic 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(com.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,
java.awt.Rectangle transformedSpace)
WholeImageFilterfilterPixels in class WholeImageFilterwidth - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output boundspublic int distanceMap(int[] map,
int width,
int height)
public java.lang.String toString()
toString in class java.lang.Object