Images are an exciting part of modern user interfaces and "enjoy" AWT support. This support is manifested through the AWT's facilities for image loading, drawing, animation, production, consumption, and filtering. Before exploring this support, some essential concepts need to be understood. These concepts include

  • Definition of an image?

  • The producer, consumer, and image observer model

  • Color models

An image is one or more rectangular grids of colored pixels. Each grid is known as a frame. JPEG files can only contain a single frame, whereas GIF files can contain one or more frames. A GIF file containing multiple frames is known as an animated GIF.

Each image is associated with an object created from a subclass of the AWT's abstract Image

Get Special Edition Using Java 2 Standard 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.