BufferedImageOp, Cloneablepublic class RippleFilter extends TransformFilter
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
NOISE |
Noise ripples.
|
static int |
SAWTOOTH |
Sawtooth wave ripples.
|
static int |
SINE |
Sine wave ripples.
|
static int |
TRIANGLE |
Triangle wave ripples.
|
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO| 构造器 | 说明 |
|---|---|
RippleFilter() |
Construct a RippleFilter.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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(int 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() |
|
protected void |
transformInverse(int x,
int y,
float[] out) |
Inverse transform a point.
|
protected void |
transformSpace(Rectangle r) |
Forward transform a rectangle.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolationpublic static final int SINE
public static final int SAWTOOTH
public static final int TRIANGLE
public static final int NOISE
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(int waveType)
waveType - the type.getWaveType()public int getWaveType()
setWaveType(int)protected void transformSpace(Rectangle r)
TransformFiltertransformSpace 在类中 TransformFilterr - the rectangle to transformprotected void transformInverse(int x,
int y,
float[] out)
TransformFiltertransformInverse 在类中 TransformFilterx - 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 imageCopyright © 2019. All rights reserved.