com.jhlabs.image
Class DiffuseFilter
- BufferedImageOp, Cloneable
public class DiffuseFilter
This filter diffuses an image by moving its pixels in random directions.
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
float | getScale() - Returns the scale of the texture.
|
void | setScale(float scale) - Specifies the scale of the texture.
|
String | toString()
|
protected void | transformInverse(int x, int y, float[] out) - Inverse transform a point.
|
DiffuseFilter
public DiffuseFilter()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- filter in interface TransformFilter
getScale
public float getScale()
Returns the scale of the texture.
- the scale of the texture.
setScale
public void setScale(float scale)
Specifies the scale of the texture.
scale
- the scale of the texture.
toString
public String toString()
transformInverse
protected void transformInverse(int x,
int y,
float[] out)
Inverse transform a point. This method needs to be overriden by all subclasses.
- transformInverse in interface TransformFilter
x
- the X position of the pixel in the output imagey
- the Y position of the pixel in the output imageout
- the position of the pixel in the input image