BufferedImageFilter
class subclasses an
ImageFilter
to provide a simple means of
using a single-source/single-destination image operator
(BufferedImageOp
) to filter a BufferedImage
in the Image Producer/Consumer/Observer
paradigm. Examples of these image operators are: ConvolveOp
,
AffineTransformOp
and LookupOp
.
ImageFilter
, BufferedImage
, BufferedImageOp
Modifier and Type | Field and Description |
---|---|
pack-priv BufferedImageOp | |
pack-priv byte[] | |
pack-priv int | |
pack-priv int[] | |
pack-priv ColorModel | |
pack-priv int |
Access | Constructor and Description |
---|---|
public | BufferedImageFilter(BufferedImageOp
the specified op)BufferedImageOp to
use to filter a BufferedImage Constructs a |
Modifier and Type | Method and Description |
---|---|
private void | |
private WritableRaster | |
public BufferedImageOp | |
public void | imageComplete(int
the status of image loading status)Overrides java. Implements java. imageComplete
method of the ImageConsumer interface.
|
public void | setColorModel(ColorModel model)
Overrides java. Implements java. setColorModel method
of the ImageConsumer interface.
|
public void | setDimensions(int
the width to which to set the width of this
width, int BufferedImageFilter the height to which to set the height of this
height)BufferedImageFilter Overrides java. Implements java. setDimensions method
of the ImageConsumer interface.
|
public void | setPixels(int
the X coordinate of the upper-left corner of the
area of pixels to be set x, int the Y coordinate of the upper-left corner of the
area of pixels to be set y, int the width of the area of pixels w, int the height of the area of pixels h, ColorModel the specified model, byte[] ColorModel the array of pixels pixels, int the offset into the off, int pixels arraythe distance from one row of pixels to the next in
the scansize)pixels arrayOverrides java. Implements java. setPixels
method of the ImageConsumer interface which takes
an array of bytes.
|
public void | setPixels(int
the X coordinate of the upper-left corner of the
area of pixels to be set x, int the Y coordinate of the upper-left corner of the
area of pixels to be set y, int the width of the area of pixels w, int the height of the area of pixels h, ColorModel the specified model, int[] ColorModel the array of pixels pixels, int the offset into the off, int pixels arraythe distance from one row of pixels to the next in
the scansize)pixels arrayOverrides java. Implements java. setPixels
method of the ImageConsumer interface which takes
an array of integers.
|
bufferedImageOp | back to summary |
---|---|
pack-priv BufferedImageOp bufferedImageOp |
bytePixels | back to summary |
---|---|
pack-priv byte[] bytePixels |
height | back to summary |
---|---|
pack-priv int height |
intPixels | back to summary |
---|---|
pack-priv int[] intPixels |
model | back to summary |
---|---|
pack-priv ColorModel model |
width | back to summary |
---|---|
pack-priv int width |
BufferedImageFilter | back to summary |
---|---|
public BufferedImageFilter(BufferedImageOp op) Constructs a
|
convertToRGB | back to summary |
---|---|
private void convertToRGB() |
createDCMraster | back to summary |
---|---|
private WritableRaster createDCMraster() |
getBufferedImageOp | back to summary |
---|---|
public BufferedImageOp getBufferedImageOp() Returns the
|
imageComplete | back to summary |
---|---|
public void imageComplete(int status) Overrides java. Implements java. Filters the information provided in the Note This method is intended to be called by the
|
setColorModel | back to summary |
---|---|
public void setColorModel(ColorModel model) Overrides java. Implements java. Filters the information provided in the
If Note This method is intended to be called by the
|
setDimensions | back to summary |
---|---|
public void setDimensions(int width, int height) Overrides java. Implements java. Filters the information provided in the
Note This method is intended to be called by the
|
setPixels | back to summary |
---|---|
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) Overrides java. Implements java. Filters the information provided in the Note This method is intended to be called by the
|
setPixels | back to summary |
---|---|
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) Overrides java. Implements java. Filters the information provided in the Note This method is intended to be called by the
|