GDI+ versus GDI
How does GDI+ compare to classic GDI for speed?
If it is slower, is that incurable (object-oriented designs
tend to be slower than 'flat' api designs), or are there
techniques to make it go faster?
Can GDI+ draw functions handle smooth scrolling of dozens of
graphical objects without disturbing flicker etc?
Any regrets starting with GDI+?
Anyone throwing it out and going back to GDI?
[445 byte] By [
resander] at [2007-11-18 19:18:36]

# 1 Re: GDI+ versus GDI
Try Createing a backbuffer and draw everything there when you are done then copy and paste to the screen. And that should relieve flickering :).
GDI+ is just classes to rap up GDI, and to make alot of things more simple :). GDI+ is the same speed as GDI.
From leunen (http://www.leunen.com/cbuilder/gdiplus.html)
1. What is GD+?
GDI+ is the Microsoft new technology which will replace the old GDI from the old win32 API
Basically it's a set of .NET classes which hides all the video driver's details so you don't have to worry about which graphic card is used.
GDI+ is part of XP and redistributable for 98/ME/NT/2k. In other words, the gdiplus.dll is available in XP and you have to install it in the system directory with all other versions of Windows.
Anyone throwing it out and going back to GDI?
Im staying with GDI. Maby I'll learn GDI+ ...
Hope this helps :)
answer at 2007-11-10 3:51:55 >

# 2 Re: GDI+ versus GDI
The difference between GDI+ and the "old" GDI API is, that GDI+ uses a set of classes to make use of GDI objects much easier. In some cases it can be slower due the class overhead, but in some other cases where pre-defined algorithms are implemented in the GDI+ class hierarchy, you can save alot of time writing those on your own, and even then the GDI+ algorithms may be a bit faster due Microsoft (should) have spent some resources into developing/researching them.
So it may depend on what you itend or prefer to do. In general, GDI+ may be alot easiert, but well it also doesn't let you all the flexibility you have using a "low" API (GDI isn't realy low level, but compared to frameworks like GDI+...).
I prefer using the "old" GDI API 'cause it lets me have more control over my program, to create my own abstractions rather than using some predefined. But creating cross-platform programs it's quite necessary, so... -.^