The Basic Principles of GDI+

Like its predecessor GDI, GDI+ is an immediate mode graphics system. This means that as you send commands to the graphic interface, effects are seen on the device surface or in the display memory immediately. The other kind of graphics system, retained mode graphics, usually maintain hierarchies of objects that know how to paint themselves.

GDI+ uses brushes and pens to paint on the graphics surface, just like GDI did. Unlike GDI, though, you can use any graphical object on any surface at any time. GDI required you to create a graphics object, select it for use in a Device Context (DC), use the object, deselect it from the DC, and then destroy the object. If you didn't do it in that order, you could get system resource ...

Get C# and the .NET Framework: The C++ Perspective 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.