public class FieldWarpFilter extends TransformFilter
Modifier and Type | Class and Description |
---|---|
static class |
FieldWarpFilter.Line |
Modifier and Type | Field and Description |
---|---|
private float |
amount |
private float |
height |
private FieldWarpFilter.Line[] |
inLines |
private FieldWarpFilter.Line[] |
intermediateLines |
private FieldWarpFilter.Line[] |
outLines |
private float |
power |
private float |
strength |
private float |
width |
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
Constructor and Description |
---|
FieldWarpFilter() |
Modifier and Type | Method and Description |
---|---|
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.
|
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private float amount
private float power
private float strength
private FieldWarpFilter.Line[] inLines
private FieldWarpFilter.Line[] outLines
private FieldWarpFilter.Line[] intermediateLines
private float width
private float height
public FieldWarpFilter()
public void setAmount(float amount)
amount
- the amountgetAmount()
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 transformInverse(int x, int y, float[] out)
TransformFilter
transformInverse
in class TransformFilter
x
- 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
in interface BufferedImageOp
filter
in class TransformFilter
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses