GDI+ while usually used in .net applications, is also available to VB5/6 using declares or a type library.
This sample application shows how to use GDI+ to save images to various compressed image formats.
If you have the gdiplus.dll installed in your \windows(winnt)\system(32) directory, then you can use this code. If not its available at:
http://www.microsoft.com/downloads/d...displaylang=en
Any 32 bit OS aside from Win95 can use the gdiplus.dll, making it an excellent FREE alternative to image controls when saving to compressed formats.
Note: GIF files are covered by the Unisys patent until June, 20 2003.