public abstract class TransformFilter extends AbstractBufferedImageOp
| Modifier and Type | Field and Description | 
|---|---|
| static int | BILINEARUse bilinear interpolation. | 
| static int | CLAMPClamp pixels to the image edges. | 
| protected int | edgeActionThe action to take for pixels off the image edge. | 
| protected int | interpolationThe type of interpolation to use. | 
| static int | NEAREST_NEIGHBOURUse nearest-neighbout interpolation. | 
| protected Rectangle | originalSpaceThe input image rectangle. | 
| static int | RGB_CLAMPClamp pixels RGB to the image edges, but zero the alpha. | 
| protected Rectangle | transformedSpaceThe output image rectangle. | 
| static int | WRAPWrap pixels off the edge onto the oppsoite edge. | 
| static int | ZEROTreat pixels off the edge as zero. | 
filterListener| Constructor and Description | 
|---|
| TransformFilter() | 
| Modifier and Type | Method and Description | 
|---|---|
| BufferedImage | filter(BufferedImage src,
      BufferedImage dst) | 
| protected BufferedImage | filterPixelsNN(BufferedImage dst,
              int width,
              int height,
              int[] inPixels,
              Rectangle transformedSpace) | 
| int | getEdgeAction()Get the action to perform for pixels off the edge of the image. | 
| int | getInterpolation()Get the type of interpolation to perform. | 
| void | setEdgeAction(int edgeAction)Set the action to perform for pixels off the edge of the image. | 
| void | setInterpolation(int interpolation)Set the type of interpolation to perform. | 
| protected abstract void | transformInverse(int x,
                int y,
                float[] out)Inverse transform a point. | 
| protected void | transformSpace(Rectangle rect)Forward transform a rectangle. | 
clone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGBpublic static final int ZERO
public static final int CLAMP
public static final int WRAP
public static final int RGB_CLAMP
public static final int NEAREST_NEIGHBOUR
public static final int BILINEAR
protected int edgeAction
protected int interpolation
protected Rectangle transformedSpace
protected Rectangle originalSpace
public void setEdgeAction(int edgeAction)
edgeAction - one of ZERO, CLAMP or WRAPgetEdgeAction()public int getEdgeAction()
setEdgeAction(int)public void setInterpolation(int interpolation)
interpolation - one of NEAREST_NEIGHBOUR or BILINEARgetInterpolation()public int getInterpolation()
setInterpolation(int)protected abstract void transformInverse(int x,
                    int y,
                    float[] out)
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 imageprotected void transformSpace(Rectangle rect)
rect - the rectangle to transformpublic BufferedImage filter(BufferedImage src, BufferedImage dst)
filter in interface BufferedImageOpfilter in class AbstractBufferedImageOpprotected BufferedImage filterPixelsNN(BufferedImage dst, int width, int height, int[] inPixels, Rectangle transformedSpace)
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.