Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Summary
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access