com.jhlabs.image
Class WholeImageFilter
- BufferedImageOp, Cloneable
public abstract class WholeImageFilter
A filter which acts as a superclass for filters which need to have the whole image in memory
to do their stuff.
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
protected abstract int[] | filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace) - Actually filter the pixels.
|
protected void | transformSpace(Rectangle rect) - Calculate output bounds for given input bounds.
|
originalSpace
protected Rectangle originalSpace
The input image bounds.
transformedSpace
protected Rectangle transformedSpace
The output image bounds.
WholeImageFilter
public WholeImageFilter()
Construct a WholeImageFilter.
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
filterPixels
protected abstract int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds
transformSpace
protected void transformSpace(Rectangle rect)
Calculate output bounds for given input bounds.
rect
- input and output rectangle