BufferedImageOp, Cloneablepublic class MarbleFilter extends TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO| 构造器 | 说明 |
|---|---|
MarbleFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
|
float |
getAmount() |
Get the amount of effect.
|
float |
getTurbulence() |
Returns the turbulence of the effect.
|
float |
getXScale() |
Get the X scale of the effect.
|
float |
getYScale() |
Get the Y scale of the effect.
|
void |
setAmount(float amount) |
Set the amount of effect.
|
void |
setTurbulence(float turbulence) |
Specifies the turbulence of the effect.
|
void |
setXScale(float xScale) |
Set the X scale of the effect.
|
void |
setYScale(float yScale) |
Set the Y scale of the effect.
|
String |
toString() |
|
protected void |
transformInverse(int x,
int y,
float[] out) |
Inverse transform a point.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpacepublic void setXScale(float xScale)
xScale - the scale.getXScale()public float getXScale()
setXScale(float)public void setYScale(float yScale)
yScale - the scale.getYScale()public float getYScale()
setYScale(float)public void setAmount(float amount)
amount - the amount
min-value 0
max-value 1getAmount()public float getAmount()
setAmount(float)public void setTurbulence(float turbulence)
turbulence - the turbulence of the effect.
min-value 0
max-value 1getTurbulence()public float getTurbulence()
setTurbulence(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 imagepublic BufferedImage filter(BufferedImage src, BufferedImage dst)
filter 在接口中 BufferedImageOpfilter 在类中 TransformFilterCopyright © 2019. All rights reserved.