Can I use tiff  format in a VB software?

meravkn
meravkn used Ask the Experts™
on
Hi,

I'm buliding a software that handles photos. Users can upload photos from their own collection.  I was told that it's impossible to have the user upload tiff, EPS, Gif and Pic formats. Is that true? I know that the gif is a problem but what about the rest? can I use API to solve the problem?

Please help me ASAP!!!

Thanks!

Merav
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
You cannot open a .TIF file directly in VB as VB doesnot understands these formats.

You will have to convert these .TIF Files in .gif Format first using third party control.
such DLL for Conversiion called "Tiff Dll Conversion Kit" which u can obtain free from www.informatik.com.
Commented:
Here is the source doe to Convert Tiff into Gif. Then you can display GIF through Picturbox control ot Internet Control on your form.
http://www.catenary.com/howto/tif2gif.html

Commented:
i dont know how to do this with a tiff image, but are you looking for code to display a gif image?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Hi
If you have MS office installed, you can use MS Office filters. Standard office package understand BMP, EPS, TIFF, JPEG, GIF, PNG, PIC, WPG, WMF and EMF formats for import and BMP, JPEG, GIF and PNG formats for export. I've recently posted this totally undocumented staff at http://www.freevbcode.com/ShowCode.Asp?ID=4998. The most recent info I could found was dated by 1992(!). Also, if you're interesting on image processing (effects, filters etc, like photoshop) take a look on my sample at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=41320
Unfortunatelly, export filters use _cdecl callback, which can not be implementing in VB. I found workaround for w9x OS, but still can not implement it into NT/2000/XP. Anyway all import filters (which you need) works fine.

Regards
Ark
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to Sethi
Please leave any comments here within the
next seven days.

Commented:
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial