Reputation: 1585
How can I convert a graphic, created on a PictureBox, to Bitmap?
Upvotes: 0
Views: 228
Reputation: 887195
You need to draw directly on a Bitmap
object by calling Graphics.FromImage
, then set the Bitmap
as the PictureBox's Image
.
Upvotes: 2
Reputation: 26436
Or if you want to create a Bitmap object:
Bitmap myBitmap = new Bitmap(pictureBox1.Image);
Upvotes: 2