ImageConsumer is an interface that provides the means to consume pixel data and render it for display.
public abstract interface java.awt.image.ImageConsumer { // Constants public final static int COMPLETESCANLINES; public final static int IMAGEABORTED; public final static int IMAGEERROR; public final static int RANDOMPIXELORDER; public final static int SINGLEFRAME; public final static int SINGLEFRAMEDONE; public final static int SINGLEPASS; public final static int STATICIMAGEDONE; public final static int TOPDOWNLEFTRIGHT; // Interface Methods public abstract void imageComplete (int status); public abstract void setColorModel (ColorModel model); public abstract void setDimensions (int width, int height); public abstract void setHints (int hints); public abstract void setPixels (int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize); public abstract void setPixels (int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize); public abstract void setProperties (Hashtable properties); }
Hint flag for the setHints(int) method; indicates that the image will be delivered one or more scanlines at a time.
Status flag for the imageComplete(int) method indicating that the loading process for the image aborted.
Status flag for the imageComplete(int) method indicating that an error happened during image loading.
Hint flag for the setHints(int) method; indicates that the pixels will be delivered in no particular order.
Hint flag for the setHints(int) method; indicates that the image consists of a single frame.
Status flag for the imageComplete(int) method indicating a single frame of the image has loaded.
Hint flag for the setHints(int) method; indicates that each pixel will be delivered once (i.e., the producer will not make multiple passes over the image).
Status flag for the imageComplete(int) method indicating that the image has fully and successfully loaded, and that there are no additional frames.
Hint flag for the setHints(int) method; indicates that pixels will be delivered in a top to bottom, left to right order.
Image loading status flags.
Called when the image, or a frame of an image sequence, is complete to report the completion status.
The color model for the image.
Tells the ImageConsumer the color model used for most of the pixels in the image.
Width for image.
Height for image.
Tells the consumer the image's dimensions.
Image consumption hints.
Gives the consumer information about how pixels will be delivered.
x-coordinate of top-left corner of pixel data delivered with this method call.
y-coordinate of top-left corner of pixel data delivered with this method call.
Width of the rectangle of pixel data delivered with this method call.
Height of the rectangle of pixel data delivered with this method call.
Color model of image data.
Image data.
Offset from beginning of the pixels array.
Size of each line of data in pixels array.
Delivers a rectangular block of pixels to the image consumer.
x-coordinate of top-left corner of pixel data delivered with this method call.
y-coordinate of top-left corner of pixel data delivered with this method call.
Width of the rectangle of pixel data delivered with this method call.
Height of the rectangle of pixel data delivered with this method call.
Color model of image data.
Image data.
Offset from beginning of the pixels array.
Size of each line of data in pixels array.
Delivers a rectangular block of pixels to the image consumer.
The properties for the image.
Delivers a Hashtable that contains the image's properties.
ColorModel, Hashtable, ImageFilter, PixelGrabber, Object