public abstract class WholeImageFilter extends AbstractBufferedImageOp
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Rectangle |
originalSpace
The input image bounds.
|
protected java.awt.Rectangle |
transformedSpace
The output image bounds.
|
| Constructor and Description |
|---|
WholeImageFilter()
Construct a WholeImageFilter.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
protected abstract int[] |
filterPixels(int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace)
Actually filter the pixels.
|
protected void |
transformSpace(java.awt.Rectangle rect)
Calculate output bounds for given input bounds.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBprotected java.awt.Rectangle transformedSpace
protected java.awt.Rectangle originalSpace
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
protected void transformSpace(java.awt.Rectangle rect)
rect - input and output rectangleprotected abstract int[] filterPixels(int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace)
width - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output bounds