Results 1 to 3 of 3

Thread: help in picturebox

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    5

    help in picturebox

    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 ?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: help in picturebox

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    5

    thank

    thank you jmcilhinney for this information

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width