Solved

how to save changes made in picture box

Posted on 2004-10-21
240 Views
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
0
Question by:asatish11
    1 Comment
     
    LVL 6

    Accepted Solution

    by:
    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
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    maxBlock challenge 30 68
    sameEnds challenge 25 47
    matchUp  challenge 9 36
    bigHeights  challenge 13 31
    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    This is about my first experience with programming Arduino.
    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 …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now