public abstract class WholeImageFilter
extends java.awt.image.ImageFilter
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canFilterIndexColorModel
If true, then image pixels for images with an IndexColorModel ndex will be accumulated
as bytes in inBytePixels.
|
protected java.awt.image.ColorModel |
defaultRGBModel |
protected byte[] |
inBytePixels |
protected int[] |
inPixels |
protected java.awt.Rectangle |
originalSpace |
protected java.awt.Rectangle |
transformedSpace |
| Constructor and Description |
|---|
WholeImageFilter()
Construct a WholeImageFilter
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getTransformedSpace(java.awt.Rectangle base)
Returns the dimensions an image with the given base dimensions must have so that the resulting image
has the original dimensions.
|
void |
setColorModel(java.awt.image.ColorModel model) |
void |
setDimensions(int width,
int height) |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize) |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize) |
protected void |
transformSpace(java.awt.Rectangle rect) |
protected java.awt.Rectangle transformedSpace
protected java.awt.Rectangle originalSpace
protected java.awt.image.ColorModel defaultRGBModel
protected int[] inPixels
protected byte[] inBytePixels
protected boolean canFilterIndexColorModel
protected void transformSpace(java.awt.Rectangle rect)
public void setDimensions(int width,
int height)
setDimensions in interface java.awt.image.ImageConsumersetDimensions in class java.awt.image.ImageFilterpublic java.awt.Rectangle getTransformedSpace(java.awt.Rectangle base)
base - the target dimensions of the imagepublic void setColorModel(java.awt.image.ColorModel model)
setColorModel in interface java.awt.image.ImageConsumersetColorModel in class java.awt.image.ImageFilterpublic void setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize)
setPixels in interface java.awt.image.ImageConsumersetPixels in class java.awt.image.ImageFilterpublic void setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize)
setPixels in interface java.awt.image.ImageConsumersetPixels in class java.awt.image.ImageFilter