The ImageConsumer Interface
Image consumers receive image data from an image producer. The methods defined by the ImageConsumer interface are listed in Table 6-2.
Method | Intent |
---|---|
void imageComplete(int) | Signifies that the producer is finished delivering image data |
void setColorModel(ColorModel) | Indicates the color model used for the majority of the calls to setPixels() |
void setDimensions(int,int) | Specifies the width and height of the image |
void setHints(int) | Indicates the order in which pixels will be delivered |
void setProperties(Hashtable) | Sets properties associated with the filtered image |
void setPixels(int,int,int,int, ColorModel, byte[], int, int) | Delivers pixels in a byte array |
void setPixels(int,int,int,int, ... |
Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.