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 Custom Image Filters

The AWT provides two ways to implement custom image filters. One way is to extend the ImageFilter class. The ImageFilter class is a “null” filter that passes on the bits of an image, untouched, to another image consumer. As you one might suspect, an image filter that makes no modifications to the original image is, in and of itself, of little use. The ImageFilter class is designed to be subclassed in order to implement filters that actually modify the original image. As we shall soon discover, extending the ImageFilter class can sometimes be a daunting task.

The second way to implement an image filter is to extend the RGBImageFilter class. RGBImageFilter extends ImageFilter and is much easier to subclass than ...

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