tags:

views:

35

answers:

3

How can I convert a graphic, created on a PictureBox, to Bitmap?

A: 

try pictureBox1.Image.Save(..)

nihi_l_ist
+2  A: 

Or if you want to create a Bitmap object:

Bitmap myBitmap = new Bitmap(pictureBox1.Image);
deltreme
+2  A: 

You need to draw directly on a Bitmap object by calling Graphics.FromImage, then set the Bitmap as the PictureBox's Image.

SLaks
thank for your answer
Hesam Qodsi