Results 1 to 3 of 3

Thread: [RESOLVED] How to save content of a picture box as a file

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    403

    Resolved [RESOLVED] How to save content of a picture box as a file

    I am trying to learn about screensave and image manipulation techniques. It is a big subject, not well covered in my own VB6 trextbooks.

    I have based my learning on Microsoft article 161299 thus far and though its code was written for VB4 it runs OK under VB6.

    The end result of the code is an image displayed in Picturebox1. I would now like to save that image to a file in either .bmp or, preferably, .jpg format.

    Is there please a straightforward general method for transferring whatever may be displayed in a Picturebox at a given instant into a saved .bmp or .jpg file which can subsequently be opened and read by other graphical/photo programs?

    Some pointers would be much appreciated.

    camoore

    Wales, UK

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: How to save content of a picture box as a file

    You can use the SavePicture function.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    403

    Re: How to save content of a picture box as a file

    Many thanks baja yu for your very rapid response. That was the pointer I needed for now. Have got it working fine.

    I will mark this thread as resolved.

    Best regards,

    camoore

    Wales UK

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