O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Table 6-2. The java.awt.image.ImageConsumer Interface
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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required