Image Producers and Image Observers

Image producers produce the bits associated with an image for delivery to an image consumer.[1] Image production is an asynchronous activity, so the AWT also provides image observers for monitoring the production of images by an image producer. The java.awt.image package defines interfaces for image producers, consumers, and observers.

[1] See “Image Filtering” for more details about image consumers.

Asynchronous Image Production

Much of the image manipulation that takes place in the AWT happens asynchronously. For example, when the call to drawImage() returns in the code fragment below, the image may not be showing at all. If none of the image was loaded at the time of the call, drawImage() would have nothing ...

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.