Solved

Convert GIF/Save PictureBox as GIF

Posted on 1997-07-10
3
401 Views
Last Modified: 2013-11-19
Hello,
How do I save the contents of a PictureBox or Image control as a GIF or JPG file?
If I have a saved BMP file, is there a utitlity where I can convert the BMP into GIF/JPG using a command from within VB?
If I have to buy a commercial image OCX which can save as GIF/JPG, which is the best/cheapest?
0
Comment
Question by:UlfB
3 Comments
 
LVL 7

Expert Comment

by:tward
ID: 1428166
What version of VB are you using?  There is an OCX for VB4 by a company called LeadTools which is about $400.00 which will open and convert about 42 different image formats.

If you are using VB5.0 I believe atleast GIF is now part of the Picturebox, not sure about JPG though.
0
 

Author Comment

by:UlfB
ID: 1428167
I am using VB5.
LeadTools seems to be a bit of an overkill in this situation, and yes it is possible to display a GIF in VB5, but not save.
0
 
LVL 3

Accepted Solution

by:
wolfcrag earned 100 total points
ID: 1428168
If you want a free tool which reads many formats (e.g. GIF, JPG, BMP, RLE, TGA, PCX, DIB, JIF...) and can save to two formats (JPG and BMP) try:

http://einstein.ae.eng.ua.edu/nishita/index.htm

Note, it's a DLL, but it's easy to use. Since it doesn't save to GIF this is not a complete answer, but hey there is such a thing as partial credit! :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…

895 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

12 Experts available now in Live!

Get 1:1 Help Now