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. C#
  4. how does accelerate drawing operation?

how does accelerate drawing operation?

Scheduled Pinned Locked Moved C#
questiongraphics
8 Posts 5 Posters 0 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.
  • S Offline
    S Offline
    Sasuko
    wrote on last edited by
    #1

    i'm creating a software that paint and draw on a picturebox, but it is very slow. How can i accelerate it?

    M G A 3 Replies Last reply
    0
    • S Sasuko

      i'm creating a software that paint and draw on a picturebox, but it is very slow. How can i accelerate it?

      M Offline
      M Offline
      MoustafaS
      wrote on last edited by
      #2

      You may better draw on a panel not a picturebox.

      ------------------------------
      "The Soapbox has been so ..."

      S 1 Reply Last reply
      0
      • S Sasuko

        i'm creating a software that paint and draw on a picturebox, but it is very slow. How can i accelerate it?

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Are you using the paint event to draw on top of the picturebox, or are you drawing on the image in the picturebox? --- b { font-weight: normal; }

        S 1 Reply Last reply
        0
        • S Sasuko

          i'm creating a software that paint and draw on a picturebox, but it is very slow. How can i accelerate it?

          A Offline
          A Offline
          A Gharighi
          wrote on last edited by
          #4

          I don't know how are you doing the painting, but in my experience using double-buffer painting (by calling SetStyle(...)) has great effect on painting. Trying to do "ngen" will show you a very fast code execution resulting a good paint also. AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com

          S 1 Reply Last reply
          0
          • A A Gharighi

            I don't know how are you doing the painting, but in my experience using double-buffer painting (by calling SetStyle(...)) has great effect on painting. Trying to do "ngen" will show you a very fast code execution resulting a good paint also. AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com

            S Offline
            S Offline
            Susuko
            wrote on last edited by
            #5

            what is ngen? And where i have to do it?

            A 1 Reply Last reply
            0
            • M MoustafaS

              You may better draw on a panel not a picturebox.

              ------------------------------
              "The Soapbox has been so ..."

              S Offline
              S Offline
              Susuko
              wrote on last edited by
              #6

              why?

              1 Reply Last reply
              0
              • G Guffa

                Are you using the paint event to draw on top of the picturebox, or are you drawing on the image in the picturebox? --- b { font-weight: normal; }

                S Offline
                S Offline
                Susuko
                wrote on last edited by
                #7

                the second one calling invoke()

                1 Reply Last reply
                0
                • S Susuko

                  what is ngen? And where i have to do it?

                  A Offline
                  A Offline
                  A Gharighi
                  wrote on last edited by
                  #8

                  NGen is the tool that ships with .net framework. IF you've installed Visual Studio or .net framework sdk, go to sdk or vs commnad prompt (to have the path to ngen.exe) and try to run ngen.exe, it's a command line tool. AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com

                  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