|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.RippleFilter
public class RippleFilter
A filter which distorts an image by rippling it in the X or Y directions. The amplitude and wavelength of rippling can be specified as well as whether pixels going off the edges are wrapped or not.
Field Summary | |
---|---|
static int |
NOISE
|
static int |
SAWTOOTH
|
static int |
SINE
|
static int |
TRIANGLE
|
float |
xAmplitude
|
float |
xWavelength
|
float |
yAmplitude
|
float |
yWavelength
|
Fields inherited from class com.jhlabs.image.TransformFilter |
---|
BILINEAR, CLAMP, NEAREST_NEIGHBOUR, WRAP, ZERO |
Constructor Summary | |
---|---|
RippleFilter()
Construct a RIppleFIlter |
Method Summary | |
---|---|
int |
getWaveType()
|
float |
getXAmplitude()
Get the amplitude of ripple in the X direction. |
float |
getXWavelength()
Get the wavelength of ripple in the X direction. |
float |
getYAmplitude()
Get the amplitude of ripple in the Y direction. |
float |
getYWavelength()
Get the wavelength of ripple in the Y direction. |
void |
setWaveType(int waveType)
|
void |
setXAmplitude(float xAmplitude)
Set the amplitude of ripple in the X direction. |
void |
setXWavelength(float xWavelength)
Set the wavelength of ripple in the X direction. |
void |
setYAmplitude(float yAmplitude)
Set the amplitude of ripple in the Y direction. |
void |
setYWavelength(float yWavelength)
Set the wavelength of ripple in the Y direction. |
java.lang.String |
toString()
|
Methods inherited from class com.jhlabs.image.TransformFilter |
---|
filter, getBilinear, getEdgeAction, getInterpolation, getNearestNeighbour, getOriginalSpace, getTransformedSpace, setEdgeAction, setInterpolation, setOriginalSpace, setTransformedSpace |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SINE
public static final int SAWTOOTH
public static final int TRIANGLE
public static final int NOISE
public float xAmplitude
public float yAmplitude
public float xWavelength
public float yWavelength
Constructor Detail |
---|
public RippleFilter()
Method Detail |
---|
public void setXAmplitude(float xAmplitude)
xAmplitude
- the amplitude (in pixels).public float getXAmplitude()
public void setXWavelength(float xWavelength)
xWavelength
- the wavelength (in pixels).public float getXWavelength()
public void setYAmplitude(float yAmplitude)
yAmplitude
- the amplitude (in pixels).public float getYAmplitude()
public void setYWavelength(float yWavelength)
yWavelength
- the wavelength (in pixels).public float getYWavelength()
public void setWaveType(int waveType)
public int getWaveType()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |