2.3. Tutorial: Your First GDI+ Application
In this section you’ll learn how to write your first GDI+ application, step-by-step. You will create a Windows application and draw a few simple objects, such as lines, rectangles, and ellipses, on a Windows Form.
Here are the steps we will cover:
Creating a Windows application
Adding references to the GDI+ library
Obtaining the graphics surface
Setting the graphics surface properties (optional)
Drawing or filling graphics shapes
Releasing objects
Building and running the application
2.3.1. Creating a Windows Application
The first step of this tutorial is to create a Windows application using Visual Studio .NET.
1. | Open Visual Studio .NET, select File | New | Project, and then choose Visual C# Projects ... |
Get Graphics Programming with GDI+ 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.