Application Development Using Visual Basic and .NET By Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Table of Contents
Chapter 11. Introduction to GDI+
GDI+ is a set of .NET classes that provide an API for performing two-dimensional graphics in a device-independent manner. In this chapter we surveyed the main features of GDI+. We looked at the painting architecture of Windows Forms, including the role of a clipping region. We studied various tools for drawing, including pens, brushes, and fonts. We examined important data structures used in GDI+, including points, sizes, rectangles, and colors. A drawing program illustrated rubber- band drawing, allowing us to create a drawing of rectangles and ellipses of various shapes , colors, and types of brush. We saw how to work with bitmaps and metafiles. We examined use of Dispose to properly clean up GDI+ resources in our programs, and we concluded the chapter with a discussion of scrolling.