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, ...
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.