BufferedImageOp, Cloneablepublic class FieldWarpFilter extends TransformFilter
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
FieldWarpFilter.Line |
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO| 构造器 | 说明 |
|---|---|
FieldWarpFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
|
float |
getAmount() |
Get the amount of warp.
|
FieldWarpFilter.Line[] |
getInLines() |
|
FieldWarpFilter.Line[] |
getOutLines() |
|
float |
getPower() |
|
float |
getStrength() |
|
void |
setAmount(float amount) |
Set the amount of warp.
|
void |
setInLines(FieldWarpFilter.Line[] inLines) |
|
void |
setOutLines(FieldWarpFilter.Line[] outLines) |
|
void |
setPower(float power) |
|
void |
setStrength(float strength) |
|
String |
toString() |
|
protected void |
transform(int x,
int y,
Point out) |
|
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 setAmount(float amount)
amount - the amount
min-value 0
max-value 1getAmount()public float getAmount()
setAmount(float)public void setPower(float power)
public float getPower()
public void setStrength(float strength)
public float getStrength()
public void setInLines(FieldWarpFilter.Line[] inLines)
public FieldWarpFilter.Line[] getInLines()
public void setOutLines(FieldWarpFilter.Line[] outLines)
public FieldWarpFilter.Line[] getOutLines()
protected void transform(int x,
int y,
Point out)
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.