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

Extending ImageFilter

If an image filter modifies the color value of individual pixels within an image, it is straightforward enough to extend RGBImageFilter, as illustrated in the preceding sections. Filters that extend RGBImageFilter are shielded from the complexities of fulfilling the ImageConsumer interface by their superclass and merely have to deal with one pixel—or color—at a time.

However, more complex image filters, such as those that produce an image whose size differs from that of the original image, cannot be content to modify an image pixel by pixel. As a result, some image filters cannot extend RGBImageFilter but must instead extend the ImageFilter class directly.

Extending ImageFilter is considerably more complicated than extending ...

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