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

Implementing the ImageConsumer Interface

As was previously mentioned in “The ImageProducer Interface”, image producers can have more than one image consumer added to them. Each image consumer registered with an image producer is passed the pixels of the image associated with the producer whenever the bits of the image are reconstructed. In this section, we will explore two subjects: implementing the ImageConsumer interface directly and registering an image consumer with an image producer.

An Image Dissolver

A dissolve filter, such as those implemented in “DissolveFilter” and “A Dissolve Filter That Extends ImageFilter”, becomes much more interesting when used to animate an image by fading it in and out. This section presents a dissolver—an implementation ...

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