BufferedImageOp, Cloneablepublic class SwimFilter extends TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO| 构造器 | 说明 |
|---|---|
SwimFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpacepublic void setAmount(float amount)
amount - the amount of swim min-value 0 max-value 100+getAmount()public float getAmount()
setAmount(float)public void setScale(float scale)
scale - the scale of the distortion. min-value 1 max-value 300+getScale()public float getScale()
setScale(float)public void setStretch(float stretch)
stretch - the stretch factor of the distortion. min-value 1
max-value 50+getStretch()public float getStretch()
setStretch(float)public void setAngle(float angle)
angle - the angle of the effect.getAngle()public float getAngle()
setAngle(float)public void setTurbulence(float turbulence)
turbulence - the turbulence of the texture. min-value 0 max-value 1getTurbulence()public float getTurbulence()
setTurbulence(float)public void setTime(float time)
time - the time.getTime()public float getTime()
setTime(float)protected 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.