public class SmearFilter extends WholeImageFilter
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CIRCLES |
static int |
CROSSES |
static int |
LINES |
static int |
SQUARES |
originalSpace, transformedSpace| 构造器和说明 |
|---|
SmearFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
float |
getAngle()
Returns the angle of the texture.
|
boolean |
getBackground() |
float |
getDensity() |
int |
getDistance() |
int |
getFadeout() |
float |
getMix() |
float |
getScatter() |
int |
getShape() |
void |
randomize() |
void |
setAngle(float angle)
Specifies the angle of the texture.
|
void |
setBackground(boolean background) |
void |
setDensity(float density) |
void |
setDistance(int distance) |
void |
setFadeout(int fadeout) |
void |
setMix(float mix) |
void |
setScatter(float scatter) |
void |
setShape(int shape) |
String |
toString() |
filter, transformSpaceclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBpublic static final int CROSSES
public static final int LINES
public static final int CIRCLES
public static final int SQUARES
public void setShape(int shape)
public int getShape()
public void setDistance(int distance)
public int getDistance()
public void setDensity(float density)
public float getDensity()
public void setScatter(float scatter)
public float getScatter()
public void setAngle(float angle)
angle - the angle of the texture.getAngle()public float getAngle()
setAngle(float)public void setMix(float mix)
public float getMix()
public void setFadeout(int fadeout)
public int getFadeout()
public void setBackground(boolean background)
public boolean getBackground()
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 © 2015. All rights reserved.