how to save changes made in picture box

Posted on 2004-10-21
Medium Priority
Last Modified: 2010-04-17
i am using picture box tool(visualbasic-6) for displaying images on a form and  i want to know how can i save the changes that  made for the image in the picture box in runtime .I am able to save the picture but i an not getting the changes made on the image in my saved file. I am using Visual basic6.

suppose if we took a man image with out nose i am lodint the image on to the picture box. when i run the file then i am adding the nose to the picture and saving it.but in my saved file i am not getting his nose but getting the old file with out nose only. i want his nose to be also save in the new file but i am not ablt to do. so how can i do that
Question by:asatish11
1 Comment

Accepted Solution

david_barker earned 200 total points
ID: 12368664
A bit tricky, but here it goes :

Private Sub Command1_Click()
   Picture1.AutoRedraw = True                 ' this is the important line !!!!
   Picture1 = LoadPicture("the initial one.bmp")
   Picture1.Circle (100, 100), 200, vbRed    ' draw a circle, not a nose !
   Picture1.Picture = Picture1.Image
   SavePicture Picture1, "the new one.bmp"
End Sub

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question