com.jhlabs.image
Class SwimFilter
- BufferedImageOp, Cloneable
A filter which distorts an image as if it were underwater.
float | getAmount() - Get the amount of swim.
|
float | getAngle() - Returns the angle of the effect.
|
float | getScale() - Returns the scale of the distortion.
|
float | getStretch() - Returns the stretch factor of the distortion.
|
float | getTime() - Returns the time.
|
float | getTurbulence() - Returns the turbulence of the effect.
|
void | setAmount(float amount) - Set the amount of swim.
|
void | setAngle(float angle) - Specifies the angle of the effect.
|
void | setScale(float scale) - Specifies the scale of the distortion.
|
void | setStretch(float stretch) - Specifies the stretch factor of the distortion.
|
void | setTime(float time) - Specifies the time.
|
void | setTurbulence(float turbulence) - Specifies the turbulence of the texture.
|
String | toString()
|
protected void | transformInverse(int x, int y, float[] out) - Inverse transform a point.
|
SwimFilter
public SwimFilter()
getAmount
public float getAmount()
Get the amount of swim.
getAngle
public float getAngle()
Returns the angle of the effect.
getScale
public float getScale()
Returns the scale of the distortion.
- the scale of the distortion.
getStretch
public float getStretch()
Returns the stretch factor of the distortion.
- the stretch factor of the distortion.
getTime
public float getTime()
Returns the time.
getTurbulence
public float getTurbulence()
Returns the turbulence of the effect.
- the turbulence of the effect.
setAmount
public void setAmount(float amount)
Set the amount of swim.
amount
- the amount of swim
setAngle
public void setAngle(float angle)
Specifies the angle of the effect.
angle
- the angle of the effect.
setScale
public void setScale(float scale)
Specifies the scale of the distortion.
scale
- the scale of the distortion.
setStretch
public void setStretch(float stretch)
Specifies the stretch factor of the distortion.
stretch
- the stretch factor of the distortion.
setTime
public void setTime(float time)
Specifies the time. Use this to animate the effect.
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.
turbulence
- the turbulence 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