com.jhlabs.image
Class MarbleFilter
- BufferedImageOp, Cloneable
public class MarbleFilter
This filter applies a marbling effect to an image, displacing pixels by random amounts.
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
float | getAmount() - Get the amount of effect.
|
float | getTurbulence() - Returns the turbulence of the effect.
|
float | getXScale() - Get the X scale of the effect.
|
float | getYScale() - Get the Y scale of the effect.
|
void | setAmount(float amount) - Set the amount of effect.
|
void | setTurbulence(float turbulence) - Specifies the turbulence of the effect.
|
void | setXScale(float xScale) - Set the X scale of the effect.
|
void | setYScale(float yScale) - Set the Y scale of the effect.
|
String | toString()
|
protected void | transformInverse(int x, int y, float[] out) - Inverse transform a point.
|
MarbleFilter
public MarbleFilter()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- filter in interface TransformFilter
getAmount
public float getAmount()
Get the amount of effect.
getTurbulence
public float getTurbulence()
Returns the turbulence of the effect.
- the turbulence of the effect.
getXScale
public float getXScale()
Get the X scale of the effect.
getYScale
public float getYScale()
Get the Y scale of the effect.
setAmount
public void setAmount(float amount)
Set the amount of effect.
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the effect.
turbulence
- the turbulence of the effect.
setXScale
public void setXScale(float xScale)
Set the X scale of the effect.
setYScale
public void setYScale(float yScale)
Set the Y scale of the effect.
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