• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

Save picture box to gif or bmp?

Is it possible to save the visual data of picture1 to a gif or bmp file?
0
leachim
Asked:
leachim
1 Solution
 
TimCotteeHead of Software ServicesCommented:
Set AutoRedraw = True for the picture box and then use the following to save it to bitmap.

    SavePicture Picture1.Image, "c:\testbed\pic1.bmp"

You cannot use this method to save as a GIF though.
0
 
caraf_gCommented:
I could be wrong, but I seem to remember that if you use LoadPicture for a gif, then SavePicture saves it as such....
0
 
morgan_peatCommented:
The picture is saved in original format if it's a bmp, ico, wmf, etc.....
JPG's and GIF's are saved as bitmaps though.
You can't actually save GIF's at all without paying an extortionate amount of money to Unisys, 'cos they have licensed the compression algorithm.
Try using PNG instead.
0
 
leachimAuthor Commented:
Thanks again
leachim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now