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
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