com.jhlabs.image
Class DissolveFilter
- BufferedImageOp, Cloneable
public class DissolveFilter
A filter which "dissolves" an image by thresholding the alpha channel with random numbers.
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()
|
DissolveFilter
public DissolveFilter()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- filter in interface PointFilter
getDensity
public float getDensity()
Get the density of the image.
getSoftness
public float getSoftness()
Get the softness of the dissolve.
setDensity
public void setDensity(float density)
Set the density of the image in the range 0..1.
setSoftness
public void setSoftness(float softness)
Set the softness of the dissolve in the range 0..1.
toString
public String toString()