public abstract class WholeImageFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
originalSpace
The input image bounds.
|
protected Rectangle |
transformedSpace
The output image bounds.
|
Constructor and Description |
---|
WholeImageFilter()
Construct a WholeImageFilter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
protected Rectangle transformedSpace
protected Rectangle originalSpace
public WholeImageFilter()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
protected void transformSpace(Rectangle rect)
rect
- input and output rectangleprotected abstract int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds