public class SmearFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
private float |
angle |
private boolean |
background |
static int |
CIRCLES |
private Colormap |
colormap |
static int |
CROSSES |
private float |
density |
private int |
distance |
private int |
fadeout |
static int |
LINES |
private float |
mix |
private Random |
randomGenerator |
private float |
scatter |
private long |
seed |
private int |
shape |
static int |
SQUARES |
originalSpace, transformedSpace
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() |
private float |
random(float low,
float high) |
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, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public static final int CROSSES
public static final int LINES
public static final int CIRCLES
public static final int SQUARES
private float angle
private float density
private float scatter
private int distance
private Random randomGenerator
private long seed
private int shape
private float mix
private int fadeout
private boolean background
public SmearFilter()
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()
private float random(float low, float high)
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 boundsWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses