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

Chapter 4. Colors and Fonts

This chapter introduces the use of colors and fonts.

Colors are interpreted by color models, so our discussion of colors starts by looking at the two types of color models the AWT offers: index color models and direct color models. After discussing the use of color models, we'll take a look at the java.awt.Color class. Colors and color models are most pertinent to image manipulation; therefore, the discussion in this chapter serves as a basis for the “Image Filtering” chapter beginning.

The font discussion centers around the Font and FontMetrics classes and the AWT's font model, which ...

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