|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.TransformFilter
railo.runtime.img.filter.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
Noise ripples. |
static int |
SAWTOOTH
Sawtooth wave ripples. |
static int |
SINE
Sine wave ripples. |
static int |
TRIANGLE
Triangle wave ripples. |
Fields inherited from class railo.runtime.img.filter.TransformFilter |
---|
BILINEAR, NEAREST_NEIGHBOUR |
Constructor Summary | |
---|---|
RippleFilter()
Construct a RippleFilter. |
Method Summary | |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
int |
getWaveType()
Get the wave type. |
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(String waveType)
Set the wave type. |
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. |
String |
toString()
|
Methods inherited from class railo.runtime.img.filter.TransformFilter |
---|
filter, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation |
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, 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
Constructor Detail |
---|
public RippleFilter()
Method Detail |
---|
public void setXAmplitude(float xAmplitude)
xAmplitude
- the amplitude (in pixels).getXAmplitude()
public float getXAmplitude()
setXAmplitude(float)
public void setXWavelength(float xWavelength)
xWavelength
- the wavelength (in pixels).getXWavelength()
public float getXWavelength()
setXWavelength(float)
public void setYAmplitude(float yAmplitude)
yAmplitude
- the amplitude (in pixels).getYAmplitude()
public float getYAmplitude()
setYAmplitude(float)
public void setYWavelength(float yWavelength)
yWavelength
- the wavelength (in pixels).getYWavelength()
public float getYWavelength()
setYWavelength(float)
public void setWaveType(String waveType) throws ExpressionException
waveType
- the type.
ExpressionException
getWaveType()
public int getWaveType()
setWaveType(java.lang.String)
public String toString()
toString
in class Object
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class TransformFilter
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |