Skip to Content
.NET Windows® Forms Custom Controls
book

.NET Windows® Forms Custom Controls

by Richard Weeks
January 2002
Intermediate to advanced
288 pages
5h 48m
English
Sams
Content preview from .NET Windows® Forms Custom Controls

The Graphics Class

At the root of GDI+ is the System.Drawing.Graphics class. This class encompasses methods for drawing text, icons, images, rectangles, ellipses, curves, and everything in between. The Graphics class is the heart and sole of GDI+, and you'd do well to familiarize yourself with the services it offers, as well as its limitations.

Although the Graphics class provides the means to render basic shapes and images to a window, it requires a supporting cast. This supporting cast comprises brushes, pens, fonts, and even images. All of these objects work together to produce the final result displayed on the screen or printer.

An important note about GDI+ is that the programming model is a static model, whereas previous versions of GDI ...

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.
Start your free trial

You might also like

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Roger Villela
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 0672323338Purchase book