Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. GDI+

GDI+

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharpwinformsgraphicsannouncement
5 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Konstantin Vasserman
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • K Konstantin Vasserman

      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.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      K 1 Reply Last reply
      0
      • C Christian Graus

        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.

        K Offline
        K Offline
        Konstantin Vasserman
        wrote on last edited by
        #3

        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* :)

        C 1 Reply Last reply
        0
        • K Konstantin Vasserman

          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* :)

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          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.

          K 1 Reply Last reply
          0
          • C Christian Graus

            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.

            K Offline
            K Offline
            Konstantin Vasserman
            wrote on last edited by
            #5

            Thank you.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups