Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save a paint

Status
Not open for further replies.

MaxZak

Programmer
Oct 5, 2001
116
IT
I've painted something in a control, using the Graphics object obtained from the CreateGraphics function: how can I save it now?
I've tried something like ("gr" is the control that contains my paint):

Dim imm As Drawing.Bitmap
imm = New Drawing.Bitmap(gr.Width, gr.Height, gr.CreateGraphics)
imm.Save("c:\test.bmp")

but it doesn't work, it saves an empty image with the right size...

Tanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top