O'Reilly logo

Graphics Programming with GDI+ by Mahesh Chand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.3. GDI+ from a GDI Perspective

This section is for GDI programmers. To build on your existing knowledge, we will compare and contrast GDI and GDI+. If you’ve never worked with GDI, we recommend that you skip this section.

We have already mentioned the first and major difference between the two versions: Whereas GDI+ exposes its functionality as both unmanaged and managed classes (through the System.Drawing namespace), GDI is unmanaged only. Besides this major difference, some of the important changes in GDI+ are as follows:

  • No handles or device contexts

  • Object-oriented approach

  • Graphics object independence

  • Method overloading

  • Separate methods for draw and fill

  • Regions and their styles

1.3.1. Elimination of Handles and Device Contexts

As a GDI programmer, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required