how can i save a image from picture box after loading an image to it and after draw in picture box ?
when i save the picture the drawing not save why ?
Printable View
how can i save a image from picture box after loading an image to it and after draw in picture box ?
when i save the picture the drawing not save why ?
If you're drawing on the PictureBox then the Image it contains is unaffected. It's like drawing on the glass over a photo in a picture frame. If you want to affect the Image then you have to draw on the Image itself. You use the Graphics.FromImage method to get a Graphics object for the Image object and use it to draw on the Image. Note that drawing on an Image object like that is permanent, so if you want to be able to undo you should do all the drawing on the PictureBox and then only repeat it on the Image itself when you're ready to save.
thank you jmcilhinney for this information