M
Marcelo
Greetings!
I develop a multiple forms application on Microsoft Visual Studio C++
..NET 2003. In this application, I draw into a picture box using the
Invalidate() method a very "heavy" graphic (composed of lots of
elements).
What I need to do is, on each MouseMove event of the picture box, draw
a rectangle in front of this graphic in backgroud and erase the last
one. (draw a new, erase the old...)
The only way I found to do that is, each time the MouseMove event is
shot, call Invalidate() and redraw ALL the background image again, and
the new rectangle in front of it (the old one is so automatically
erased).
But this is impossible. The redrawing is very, very slow.
Wouldn't there be a way of leaving the backgroud image static and each
time I call Invalidate() just draw the rectangle in front of it?
I thank for any idea.
Marcelo Schio
I develop a multiple forms application on Microsoft Visual Studio C++
..NET 2003. In this application, I draw into a picture box using the
Invalidate() method a very "heavy" graphic (composed of lots of
elements).
What I need to do is, on each MouseMove event of the picture box, draw
a rectangle in front of this graphic in backgroud and erase the last
one. (draw a new, erase the old...)
The only way I found to do that is, each time the MouseMove event is
shot, call Invalidate() and redraw ALL the background image again, and
the new rectangle in front of it (the old one is so automatically
erased).
But this is impossible. The redrawing is very, very slow.
Wouldn't there be a way of leaving the backgroud image static and each
time I call Invalidate() just draw the rectangle in front of it?
I thank for any idea.
Marcelo Schio