public class CurlFilter extends TransformFilter
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CurlFilter.Sampler |
Modifier and Type | Field and Description |
---|---|
private float |
angle |
private float |
height |
private float |
radius |
private float |
transition |
private float |
width |
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
Constructor and Description |
---|
CurlFilter()
Construct a CurlFilter with no distortion.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
float |
getAngle() |
private int |
getPixel(int[] pixels,
int x,
int y,
int width,
int height) |
float |
getRadius() |
float |
getTransition() |
void |
setAngle(float angle) |
void |
setRadius(float radius) |
void |
setTransition(float transition) |
String |
toString() |
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 angle
private float transition
private float width
private float height
private float radius
public CurlFilter()
public void setTransition(float transition)
public float getTransition()
public void setAngle(float angle)
public float getAngle()
public void setRadius(float radius)
public float getRadius()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class TransformFilter
private final int getPixel(int[] pixels, int x, int y, int width, int height)
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 imageWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses