GDI+
-
I have a couple of questions/concerns about GDI+. I've seen a few people say that GDI+ was much slower than GDI. Messages were from October of last year, so I wonder if this have been improved in the final release of .NET (if it was updated at all)? Also I am trying to figure out what is the deal with NULL pens (PS_NULL) in GDI+. I cannot seem to find anything about it. Do I just set my Pen* to NULL and do things like this:
if( pMyPen )
myGraphics.DoSomethingWithPen(pMyPen,...);But it seems that executing if's in the loop will be much slower than passing a PS_NULL pen every once in the while. What am I missing here? Thank you.
-
I have a couple of questions/concerns about GDI+. I've seen a few people say that GDI+ was much slower than GDI. Messages were from October of last year, so I wonder if this have been improved in the final release of .NET (if it was updated at all)? Also I am trying to figure out what is the deal with NULL pens (PS_NULL) in GDI+. I cannot seem to find anything about it. Do I just set my Pen* to NULL and do things like this:
if( pMyPen )
myGraphics.DoSomethingWithPen(pMyPen,...);But it seems that executing if's in the loop will be much slower than passing a PS_NULL pen every once in the while. What am I missing here? Thank you.
1/ I rewrote a GDI paint program in GDI+ prior to OCtober and had no speed issues. 2/ Make the pen a color with an alpha of 0 and it will be transparent. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.
-
1/ I rewrote a GDI paint program in GDI+ prior to OCtober and had no speed issues. 2/ Make the pen a color with an alpha of 0 and it will be transparent. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.
Thank you Christian. (I was hoping you were hanging around here about this time ;)) 1. I need to render a ton (A TON = maybe hundreds of thousands of iterations) of 2D shapes as fast as I can. Do you think it will be comparable to GDI speedwise. 2. Cool. How come I did not think of that? *scratching head* :)
-
Thank you Christian. (I was hoping you were hanging around here about this time ;)) 1. I need to render a ton (A TON = maybe hundreds of thousands of iterations) of 2D shapes as fast as I can. Do you think it will be comparable to GDI speedwise. 2. Cool. How come I did not think of that? *scratching head* :)
Konstantin Vasserman wrote: I need to render a ton (A TON = maybe hundreds of thousands of iterations) of 2D shapes as fast as I can. Do you think it will be comparable to GDI speedwise. Even GDI is not good for real time stuff, that is why we have Direct Draw. The difference is if you use DD, you can build a GDI+ surface from DD directly, and vice versa, far more easily than using GDI. As for the difference, I suspect there will be one, but not a huge one. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.
-
Konstantin Vasserman wrote: I need to render a ton (A TON = maybe hundreds of thousands of iterations) of 2D shapes as fast as I can. Do you think it will be comparable to GDI speedwise. Even GDI is not good for real time stuff, that is why we have Direct Draw. The difference is if you use DD, you can build a GDI+ surface from DD directly, and vice versa, far more easily than using GDI. As for the difference, I suspect there will be one, but not a huge one. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff.
Thank you.