Performance bet' Drawing image and loading image
-
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
-
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
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
-
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