O'Reilly logo

Special Edition Using Java 2 Standard Edition by Geoff Friesen, Chuck Cavaness, Brian Keeton

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

Images

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

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