com.jhlabs.image
Class TransformFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.TransformFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable
Direct Known Subclasses:
BlockFilter, CircleFilter, CurlFilter, DiffuseFilter, DisplaceFilter, FieldWarpFilter, KaleidoscopeProcessor, MapFilter, MarbleFilter, OffsetFilter, PerspectiveFilter, PinchFilter, PolarFilter, RippleFilter, RotateFilter, ShearFilter, SphereFilter, SwimFilter, WaterFilter

public abstract class TransformFilter
extends AbstractBufferedImageOp

An abstract superclass for filters which distort images in some way. The subclass only needs to override two methods to provide the mapping between source and destination pixels.


Field Summary
static int BILINEAR
           
static int CLAMP
           
static int NEAREST_NEIGHBOUR
           
static int WRAP
           
static int ZERO
           
 
Constructor Summary
TransformFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
static int getBilinear()
           
 int getEdgeAction()
           
 int getInterpolation()
           
static int getNearestNeighbour()
           
 java.awt.Rectangle getOriginalSpace()
           
 java.awt.Rectangle getTransformedSpace()
           
 void setEdgeAction(int edgeAction)
           
 void setInterpolation(int interpolation)
           
 void setOriginalSpace(java.awt.Rectangle originalSpace)
           
 void setTransformedSpace(java.awt.Rectangle transformedSpace)
           
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final int ZERO
See Also:
Constant Field Values

CLAMP

public static final int CLAMP
See Also:
Constant Field Values

WRAP

public static final int WRAP
See Also:
Constant Field Values

NEAREST_NEIGHBOUR

public static final int NEAREST_NEIGHBOUR
See Also:
Constant Field Values

BILINEAR

public static final int BILINEAR
See Also:
Constant Field Values
Constructor Detail

TransformFilter

public TransformFilter()
Method Detail

setEdgeAction

public void setEdgeAction(int edgeAction)

getEdgeAction

public int getEdgeAction()

setInterpolation

public void setInterpolation(int interpolation)

getInterpolation

public int getInterpolation()

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

getNearestNeighbour

public static int getNearestNeighbour()

getBilinear

public static int getBilinear()

getTransformedSpace

public java.awt.Rectangle getTransformedSpace()

setTransformedSpace

public void setTransformedSpace(java.awt.Rectangle transformedSpace)

getOriginalSpace

public java.awt.Rectangle getOriginalSpace()

setOriginalSpace

public void setOriginalSpace(java.awt.Rectangle originalSpace)