com.jhlabs.image
public abstract class TransformFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
static int |
BILINEAR |
static int |
CLAMP |
protected int |
edgeAction |
protected int |
interpolation |
static int |
NEAREST_NEIGHBOUR |
protected java.awt.Rectangle |
originalSpace |
protected java.awt.Rectangle |
transformedSpace |
static int |
WRAP |
static int |
ZERO |
Constructor and Description |
---|
TransformFilter() |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
protected java.awt.image.BufferedImage |
filterPixelsNN(java.awt.image.BufferedImage dst,
int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace) |
int |
getEdgeAction() |
int |
getInterpolation() |
void |
setEdgeAction(int edgeAction) |
void |
setInterpolation(int interpolation) |
protected abstract void |
transformInverse(int x,
int y,
float[] out) |
protected void |
transformSpace(java.awt.Rectangle rect) |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public static final int ZERO
public static final int CLAMP
public static final int WRAP
public static final int NEAREST_NEIGHBOUR
public static final int BILINEAR
protected int edgeAction
protected int interpolation
protected java.awt.Rectangle transformedSpace
protected java.awt.Rectangle originalSpace
public void setEdgeAction(int edgeAction)
public int getEdgeAction()
public void setInterpolation(int interpolation)
public int getInterpolation()
protected abstract void transformInverse(int x, int y, float[] out)
protected void transformSpace(java.awt.Rectangle rect)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
protected java.awt.image.BufferedImage filterPixelsNN(java.awt.image.BufferedImage dst, int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)