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 to improve paint() speed?

how to improve paint() speed?

Scheduled Pinned Locked Moved C#
questioncssperformancetutorialcode-review
3 Posts 2 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
    smallkubi
    wrote on last edited by
    #1

    hi, i have a question. When i use chart1.invalidate() to refresh chart, it had 3 ms cost betten call chart_paint(), Then i called chart_paint() manully on other thread, it cost less than 1ms,it can reach my requirement. But chart has no refresh, it can not clean up history paint. So i want to know how to invalidate chart control ,but not to call paint aotumatic?

    B 1 Reply Last reply
    0
    • S smallkubi

      hi, i have a question. When i use chart1.invalidate() to refresh chart, it had 3 ms cost betten call chart_paint(), Then i called chart_paint() manully on other thread, it cost less than 1ms,it can reach my requirement. But chart has no refresh, it can not clean up history paint. So i want to know how to invalidate chart control ,but not to call paint aotumatic?

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      Have you tried over-riding the Paint Event ?

      «Tell me and I forget. Teach me and I remember. Involve me and I learn.» Benjamin Franklin

      S 1 Reply Last reply
      0
      • B BillWoodruff

        Have you tried over-riding the Paint Event ?

        «Tell me and I forget. Teach me and I remember. Involve me and I learn.» Benjamin Franklin

        S Offline
        S Offline
        smallkubi
        wrote on last edited by
        #3

        how can i overriding the paint event? please help me a example

        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