Did you set the style of the control you are painting on to DoubleBuffer?
This will make sure all the drawing is done in memory first then the final
result will be painted to the surface instead of drawing each line or object
realtime.
See this page here:
http://msdn.microsoft.com/library/de...styletopic.asp
For controls that I do my own painting for, DoubleBuffer, UserPaint,
AllPaintingInWmPaint are always on, and so is TransparentBackColor just for
fun and special effects. Sometimes, ResizeRedraw is also handy if your
control needs to repaint when resized automatically.
I've noticed with these styles on, GDI+ is extremely fast and I don't notice
any unusual slowness at all. But let me know if that helps or not.
If you need to do a lot of realtime drawing without slowing up the rest of
your app, worker threads might also help.
"Scatropolis" <ch*****@frayed.net> wrote in message
news:#u**************@TK2MSFTNGP10.phx.gbl...
Is GDI as fast as drawing gets? I'm writing a program that deals with
drawing a ridiculous amount of lines and am finding GDI a little slow, or
just maybe how I'm using it. I was looking at some DirectX documents and
wondering if that was the way to go. Any help would be appreciated.
Thanks.