Share via


Getting Started

This section shows how to get started using GDI+ in a Windows Forms application. Drawing lines and strings are two of the simplest tasks you can perform in GDI+. The following topics discuss these two tasks:

  • Drawing a Line

  • Drawing a String

    Note   All of the examples in the Using GDI+ Managed Classes section assume that you have installed the Microsoft .NET Framework and run time (an environment for building, deploying, and running XML Web services and other applications), and that you are adding the code in the OnPaint method of a managed class that inherits from the System.WinForms.Form class.