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. Visual Basic
  4. Performance bet' Drawing image and loading image

Performance bet' Drawing image and loading image

Scheduled Pinned Locked Moved Visual Basic
questioncsharpgraphicsperformance
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.
  • P Offline
    P Offline
    psmukil
    wrote on last edited by
    #1

    Hi all, Im doing a project in VB.Net and im drawing the lines and rectangle on mouse down event of a label or picture box. And im checking it for redraw.. My question is, Which is the the best way? 1. Loading the image(with cross lines with same text as before) at runtime after clicking the label control or picture box dynamically. 2. Drawing a cross lines on the label or picture box on mouse down.. Which performance will be better, I found that when the form get restored it took some time to load when i use drawing. Please guide me as its very urgent. Regards Mukil

    C 1 Reply Last reply
    0
    • P psmukil

      Hi all, Im doing a project in VB.Net and im drawing the lines and rectangle on mouse down event of a label or picture box. And im checking it for redraw.. My question is, Which is the the best way? 1. Loading the image(with cross lines with same text as before) at runtime after clicking the label control or picture box dynamically. 2. Drawing a cross lines on the label or picture box on mouse down.. Which performance will be better, I found that when the form get restored it took some time to load when i use drawing. Please guide me as its very urgent. Regards Mukil

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

      You need to ditch the picture box, handle the Paint event, and draw the lines direct onto the screen.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      P 1 Reply Last reply
      0
      • C Christian Graus

        You need to ditch the picture box, handle the Paint event, and draw the lines direct onto the screen.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        P Offline
        P Offline
        psmukil
        wrote on last edited by
        #3

        Thank you very much for your reply.

        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