Graphics and Drawing in Windows Forms
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Graphics and Drawing in Windows Forms

The common language runtime uses an advanced implementation of the Windows Graphics Device Interface (GDI) called GDI+. With GDI+ you can create graphics, draw text, and manipulate graphical images as objects. GDI+ is designed to offer performance and ease of use. You can use GDI+ to render graphical images on Windows Forms and controls. Although you cannot use GDI+ directly on Web Forms, you can display graphical images through the Image Web Server control.

In this section, you will find topics that introduce the fundamentals of GDI+ programming. Although not intended to be a comprehensive reference, this section includes information about the Graphics, Pen, Brush, and Color objects, and explains how to perform such tasks as drawing shapes, drawing text, or displaying images. For more information, see "GDI+ Reference" in the MSDN library at

Graphics Overview (Windows Forms)

Provides an introduction to the graphics-related managed classes.

About GDI+ Managed Code

Provides information about the managed GDI+ classes.

Using Managed Graphics Classes

Demonstrates how to complete a variety of tasks using the GDI+ managed classes.


Provides access to GDI+ basic graphics functionality.


Provides advanced two-dimensional and vector graphics functionality.


Provides advanced GDI+ imaging functionality.


Provides advanced GDI+ typography functionality. The classes in this namespace can be used to create and use collections of fonts.


Provides printing functionality.

Custom Control Painting and Rendering

Details how to provide code for painting controls.

Graphics for Visual Basic 6.0 UsersVisual Basic Upgrading Information
Graphics for Visual Basic 6.0 UsersVisual Basic Upgrading Information

© 2015 Microsoft