how can i get an image that i drawn on a picturebox? in my application i created a form with the freehand drawing.but i can\'t save the image that i drawn as a file,there ha
I tried a similar operation.
pictureBox1.Image.Save("C:\\tempStack.jpg", ImageFormat.Jpeg);
The cause could be that the pictureBox1 (very unlikely) or pictureBox1.Image is not set.
Use
pictureBox1.Load("")
to load the image before trying to save it.