public class SmearFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
static int |
CIRCLES |
static int |
CROSSES |
static int |
LINES |
static int |
SQUARES |
originalSpace, transformedSpace
filterListener
Constructor and Description |
---|
SmearFilter() |
Modifier and Type | Method and Description |
---|---|
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, transformSpace
clone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
public 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)
WholeImageFilter
filterPixels
in class WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output boundsCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.