Building Graphical Interface Elements by Using the System.Drawing Namespace

The .NET FCL provides an advanced implementation of the Windows Graphics Device Interface (GDI) known as GDI+. GDI+ includes the following four namespaces in System.Drawing.dll:

  • System.Drawing

  • System.Drawing.Drawing2D

  • System.Drawing.Imaging

  • System.Drawing.Text

The GDI+ classes in these preceeding namespaces can be used to build graphical interface elements such as drawing text, fonts, lines, shapes, and images. GDI+ enables you to develop device-independent applications; you just need to work with the Graphics object instead of worrying about the specific details of the underlying platform.

The Graphics object is discussed in the following section.

Understanding the Graphics ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) 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.