com.jhlabs.image
Class WaterFilter
- BufferedImageOp, Cloneable
A filter which produces a water ripple distortion.
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
float | getAmplitude() - Get the amplitude of the ripples.
|
Point2D | getCentre() - Get the centre of the effect as a proportion of the image size.
|
float | getCentreX() - Get the centre of the effect in the X direction as a proportion of the image size.
|
float | getCentreY() - Get the centre of the effect in the Y direction as a proportion of the image size.
|
float | getPhase() - Get the phase of the ripples.
|
float | getRadius() - Get the radius of the effect.
|
float | getWavelength() - Get the wavelength of the ripples.
|
void | setAmplitude(float amplitude) - Set the amplitude of the ripples.
|
void | setCentre(Point2D centre) - Set the centre of the effect as a proportion of the image size.
|
void | setCentreX(float centreX) - Set the centre of the effect in the X direction as a proportion of the image size.
|
void | setCentreY(float centreY) - Set the centre of the effect in the Y direction as a proportion of the image size.
|
void | setPhase(float phase) - Set the phase of the ripples.
|
void | setRadius(float radius) - Set the radius of the effect.
|
void | setWavelength(float wavelength) - Set the wavelength of the ripples.
|
String | toString()
|
protected void | transformInverse(int x, int y, float[] out)
|
WaterFilter
public WaterFilter()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- filter in interface TransformFilter
getAmplitude
public float getAmplitude()
Get the amplitude of the ripples.
getCentre
public Point2D getCentre()
Get the centre of the effect as a proportion of the image size.
getCentreX
public float getCentreX()
Get the centre of the effect in the X direction as a proportion of the image size.
getCentreY
public float getCentreY()
Get the centre of the effect in the Y direction as a proportion of the image size.
getPhase
public float getPhase()
Get the phase of the ripples.
getRadius
public float getRadius()
Get the radius of the effect.
getWavelength
public float getWavelength()
Get the wavelength of the ripples.
setAmplitude
public void setAmplitude(float amplitude)
Set the amplitude of the ripples.
amplitude
- the amplitude
setCentre
public void setCentre(Point2D centre)
Set the centre of the effect as a proportion of the image size.
setCentreX
public void setCentreX(float centreX)
Set the centre of the effect in the X direction as a proportion of the image size.
setCentreY
public void setCentreY(float centreY)
Set the centre of the effect in the Y direction as a proportion of the image size.
setPhase
public void setPhase(float phase)
Set the phase of the ripples.
setRadius
public void setRadius(float radius)
Set the radius of the effect.
setWavelength
public void setWavelength(float wavelength)
Set the wavelength of the ripples.
wavelength
- the wavelength
toString
public String toString()