BufferedImageOp, Cloneablepublic class ShapeFilter extends WholeImageFilter
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
CIRCLE_DOWN |
|
static int |
CIRCLE_UP |
|
protected Colormap |
colormap |
|
static int |
LINEAR |
|
static int |
SMOOTH |
originalSpace, transformedSpace| 构造器 | 说明 |
|---|---|
ShapeFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilter, transformSpacepublic 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.meteoinfo.image.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()
protected int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
WholeImageFilterfilterPixels 在类中 WholeImageFilterwidth - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output boundspublic int distanceMap(int[] map,
int width,
int height)
Copyright © 2019. All rights reserved.