?
Solved

Save picture box to gif or bmp?

Posted on 2001-06-06
4
Medium Priority
?
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
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…
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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