public class BufferedImageFilter extends ImageFilter implements Cloneable
consumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
BufferedImageFilter(BufferedImageOp op) |
Modifier and Type | Method and Description |
---|---|
BufferedImageOp |
getBufferedImageOp() |
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte[] pixels,
int off,
int scansize)
This function delivers a rectangle of pixels where any
pixel(m,n) is stored in the array as a
byte at
index (n * scansize + m + offset). |
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int[] pixels,
int off,
int scansize)
This function delivers a rectangle of pixels where any
pixel(m,n) is stored in the array as an
int at
index (n * scansize + m + offset). |
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setColorModel, setDimensions, setHints, setProperties
public BufferedImageFilter(BufferedImageOp op)
public BufferedImageOp getBufferedImageOp()
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
ImageFilter
byte
at
index (n * scansize + m + offset).setPixels
in interface ImageConsumer
setPixels
in class ImageFilter
x
- the x coordinate of the rectangley
- the y coordinate of the rectanglew
- the width of the rectangleh
- the height of the rectanglemodel
- the ColorModel
used to translate the pixelspixels
- the array of pixel valuesoff
- the index of the first pixels in the pixels
arrayscansize
- the width to use in extracting pixels from the pixels
arraypublic void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
ImageFilter
int
at
index (n * scansize + m + offset).setPixels
in interface ImageConsumer
setPixels
in class ImageFilter
x
- the x coordinate of the rectangley
- the y coordinate of the rectanglew
- the width of the rectangleh
- the height of the rectanglemodel
- the ColorModel
used to translate the pixelspixels
- the array of pixel valuesoff
- the index of the first pixels in the pixels
arrayscansize
- the width to use in extracting pixels from the pixels
array