public class DissolveFilter extends PointFilter
Modifier and Type | Field and Description |
---|---|
private float |
density |
private float |
maxDensity |
private float |
minDensity |
private Random |
randomNumbers |
private float |
softness |
canFilterIndexColorModel
Constructor and Description |
---|
DissolveFilter() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
int |
filterRGB(int x,
int y,
int rgb) |
float |
getDensity()
Get the density of the image.
|
float |
getSoftness()
Get the softness of the dissolve.
|
void |
setDensity(float density)
Set the density of the image in the range 0..1.
|
void |
setSoftness(float softness)
Set the softness of the dissolve in the range 0..1.
|
String |
toString() |
setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private float density
private float softness
private float minDensity
private float maxDensity
private Random randomNumbers
public DissolveFilter()
public void setDensity(float density)
density
- the densitygetDensity()
public float getDensity()
setDensity(float)
public void setSoftness(float softness)
softness
- the softnessgetSoftness()
public float getSoftness()
setSoftness(float)
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class PointFilter
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses