Summary

We started this chapter by discussing the basics of colors, fonts, and text-related functionality and classes defined in the .NET Framework. In the colors section, we covered how to use the Color class and its members, including system colors. We also discussed color spaces, and how to translate colors from one to another.

In the fonts section, we discussed how to use the Font class and related classes to create various types of fonts with different sizes and colors. We also discussed how to control the font families, including system and private font collections, and use them in our application.

The text section covered some uses of fonts and strings. We discussed how to format text, including aligning, tab stops, trimming, and hinting. ...

Get Graphics Programming with GDI+ 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.