Summary

This chapter has explored the AWT's support for image filtering. You should have a good understanding of the ImageProducer and ImageConsumer interfaces and of how producers and consumers interact. You should also be familiar with the filters the java.awt.image package provides and know how to use and combine image filters.

Custom image filters are implemented typically by extending either java.awt.image.ImageFilter or java.awt.image.RGBImageFilter. At first glance, implementing ImageFilter directly can be very confusing, and we hope our discussion on the matter will make it easy for you to write your own filters.

We have one more chapter to go concerning image manipulation. In the next chapter, we'll focus on manipulating images without ...

Get Graphic Java™ 1.2, Volume I: AWT, Third 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.