gdi drawing

G

Guest

Hi, i have a gdi drawing program that on a mouse move event, if the left
mouse button is pushed then draw a line...very simple. only problem is that
if anything goes over my drawing surface or i minimize the form, my graphics
go away...how can i prevent this or save my graphics from going away?
 
C

Chris

iwdu15 said:
Hi, i have a gdi drawing program that on a mouse move event, if the left
mouse button is pushed then draw a line...very simple. only problem is that
if anything goes over my drawing surface or i minimize the form, my graphics
go away...how can i prevent this or save my graphics from going away?

You could save the drawing to a bitmap. Do a <Favorite Search Engine>
search for examples how to do this. One example can be found here.

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20850641.html

Chris
 
G

Guest

i tried that, but then once i revert back from the bitmap, i cant erase
anything that was in the bitmap
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top