Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image file types allowed 3

Status
Not open for further replies.

Jonah86

Programmer
Dec 11, 2003
152
US
I know, I ask WAY too many questions here. Sorry.

In a previous post I got some help changing an image at runtime, that all worked fine. My problem now is, bitmaps seem to be the only supported file type. The files I need to end up using are TIF files. Is there any way to use Tif files in Delphi, and if not is there any way I could load up an external program from within my program and have them open the image.

If there is a way to open them directly in Delphi, is there also a way to automatically shrink them down to the size of my image object?

Wow, thanks for all the help around here. When I get replies, they are always helpful.
 
Hi,

I know that you need to add Jpeg to your Uses clause to use jpeg files, not sure about Tif's though.



There are two ways to write error-free programs; only the third one works.
 
whosrdaddy,

Some cool links, thanks.



There are two ways to write error-free programs; only the third one works.
 
And the thing about opening an image in an outside program, is that possible?

I just showed what I have to some people that will be using it and they want to be able to view the entire image and then zoom on certain spots. I assume this would be quite tricky in Delphi, so I figure opening the image in another program would save a lot of work. Plus, the images are quite large and have trouble fitting on a form; resorted to using a frame to hold the image so you can scroll around it. But still the need to view a smaller image and zoom in kind of puts a kink in my plans.

Thanks again.
 
Hi,

One way to do this is with shellexecute (ShellAPI Unit)

eg.

ShellExecute(0,'open','Z:\picture.bmp','','',SW_SHOWNORMAL)

This would open picture.bmp with the default application associated with that file type.
If this is the kind of thing you want there's quite a lot of help about on ShellExecute.



There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top