AreaAveragingScaleFilter
, BufferedImageFilter
, CropImageFilter
, GrayFilter
, ImageFilter
, PixelGrabber
, ReplicateScaleFilter
, RGBImageFilter
public interface ImageConsumer
Modifier and Type | Field | Description |
---|---|---|
static final int |
COMPLETESCANLINES |
The pixels will be delivered in (multiples of) complete scanlines at a time. |
static final int |
IMAGEABORTED |
The image creation process was deliberately aborted. |
static final int |
IMAGEERROR |
An error was encountered while producing the image. |
static final int |
RANDOMPIXELORDER |
The pixels will be delivered in a random order. |
static final int |
SINGLEFRAME |
The image contain a single static image. |
static final int |
SINGLEFRAMEDONE |
One frame of the image is complete but there are more frames to be delivered. |
static final int |
SINGLEPASS |
The pixels will be delivered in a single pass. |
static final int |
STATICIMAGEDONE |
The image is complete and there are no more pixels or frames to be delivered. |
static final int |
TOPDOWNLEFTRIGHT |
The pixels will be delivered in top-down, left-to-right order. |
Modifier and Type | Method | Description |
---|---|---|
void |
imageComplete |
The imageComplete method is called when the ImageProducer is finished delivering all of the pixels that the source image contains, or when a single frame of a multi-frame animation has been completed, or when an error in loading or producing the image has occurred. |
void |
setColorModel |
Sets the ColorModel object used for the majority of the pixels reported using the setPixels method calls. |
void |
setDimensions |
The dimensions of the source image are reported using the setDimensions method call. |
void |
setHints |
Sets the hints that the ImageConsumer uses to process the pixels delivered by the ImageProducer. |
void |
setPixels |
Delivers the pixels of the image with one or more calls to this method. |
void |
setPixels |
The pixels of the image are delivered using one or more calls to the setPixels method. |
void |
setProperties |
Sets the extensible list of properties associated with this image. |
static final int RANDOMPIXELORDER
static final int TOPDOWNLEFTRIGHT
static final int COMPLETESCANLINES
static final int SINGLEPASS
static final int SINGLEFRAME
static final int IMAGEERROR
static final int SINGLEFRAMEDONE
static final int STATICIMAGEDONE
static final int IMAGEABORTED
void setDimensions(int width, int height)
width
- the width of the source imageheight
- the height of the source imagevoid setProperties(Hashtable<?,?> props)
props
- the list of properties to be associated with this imagevoid setColorModel(ColorModel model)
model
- the specified ColorModel
void setHints(int hintflags)
hintflags
- a set of hints that the ImageConsumer uses to process the pixelsvoid setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
x
- the X coordinate of the upper-left corner of the area of pixels to be sety
- the Y coordinate of the upper-left corner of the area of pixels to be setw
- the width of the area of pixelsh
- the height of the area of pixelsmodel
- the specified ColorModel
pixels
- the array of pixelsoff
- the offset into the pixels
arrayscansize
- the distance from one row of pixels to the next in the pixels
arrayvoid setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
x
- the X coordinate of the upper-left corner of the area of pixels to be sety
- the Y coordinate of the upper-left corner of the area of pixels to be setw
- the width of the area of pixelsh
- the height of the area of pixelsmodel
- the specified ColorModel
pixels
- the array of pixelsoff
- the offset into the pixels
arrayscansize
- the distance from one row of pixels to the next in the pixels
arrayvoid imageComplete(int status)
status
- the status of image loading
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/image/ImageConsumer.html