[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Save picture box to gif or bmp?

Posted on 2001-06-06
4
Medium Priority
?
358 Views
Last Modified: 2013-11-19
Is it possible to save the visual data of picture1 to a gif or bmp file?
0
Comment
Question by:leachim
4 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 400 total points
ID: 6159233
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
 
LVL 10

Expert Comment

by:caraf_g
ID: 6159235
I could be wrong, but I seem to remember that if you use LoadPicture for a gif, then SavePicture saves it as such....
0
 
LVL 1

Expert Comment

by:morgan_peat
ID: 6159243
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
 

Author Comment

by:leachim
ID: 6176466
Thanks again
leachim
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

873 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