BufferedImageOp, Cloneablepublic class PlasmaFilter extends WholeImageFilter
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
float |
turbulence |
originalSpace, transformedSpace| 构造器 | 说明 |
|---|---|
PlasmaFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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 |
getScaling() |
|
int |
getSeed() |
|
float |
getTurbulence() |
Returns the turbulence of the effect.
|
boolean |
getUseColormap() |
|
boolean |
getUseImageColors() |
|
void |
randomize() |
|
void |
setColormap(Colormap colormap) |
Set the colormap to be used for the filter.
|
void |
setScaling(float scaling) |
|
void |
setSeed(int seed) |
|
void |
setTurbulence(float turbulence) |
Specifies the turbulence of the texture.
|
void |
setUseColormap(boolean useColormap) |
|
void |
setUseImageColors(boolean useImageColors) |
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilter, transformSpacepublic void setTurbulence(float turbulence)
turbulence - the turbulence of the texture.
min-value 0
max-value 10getTurbulence()public float getTurbulence()
setTurbulence(float)public void setScaling(float scaling)
public float getScaling()
public void setColormap(Colormap colormap)
colormap - the colormapgetColormap()public Colormap getColormap()
setColormap(org.meteoinfo.image.filter.Colormap)public void setUseColormap(boolean useColormap)
public boolean getUseColormap()
public void setUseImageColors(boolean useImageColors)
public boolean getUseImageColors()
public void setSeed(int seed)
public int getSeed()
public void randomize()
protected int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
WholeImageFilterfilterPixels 在类中 WholeImageFilterwidth - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output boundsCopyright © 2019. All rights reserved.