public class OffsetFilter extends TransformFilter
Modifier and Type | Field and Description |
---|---|
private int |
height |
private int |
width |
private boolean |
wrap |
private int |
xOffset |
private int |
yOffset |
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
Constructor and Description |
---|
OffsetFilter() |
OffsetFilter(int xOffset,
int yOffset,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
boolean |
getWrap() |
int |
getXOffset() |
int |
getYOffset() |
void |
setWrap(boolean wrap) |
void |
setXOffset(int xOffset) |
void |
setYOffset(int yOffset) |
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 int width
private int height
private int xOffset
private int yOffset
private boolean wrap
public OffsetFilter()
public OffsetFilter(int xOffset, int yOffset, boolean wrap)
public void setXOffset(int xOffset)
public int getXOffset()
public void setYOffset(int yOffset)
public int getYOffset()
public void setWrap(boolean wrap)
public boolean getWrap()
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