views:

196

answers:

1

Hello,

I just tested I can access to TIFF images in Delphi 2010 with the classic

image1.Picture.LoadFromFile(MyTiffFile);

Simply using this line of code I can load the first frame of a TIFF file into a TImage component. But when a TIFF file is a multiframe one. How can I get the rest of images contained in a TIFF file?

+4  A: 

By using the standard way, no.

But you can try a 3rd party component. Here are some:

  • LibTiff for Delphi (free) allows you to work with the official Tiff implementation tapping the full 'power' of Tiff format - however it can be a little difficult to walk through the internal Tiff directory to achieve what you want. But perhaps you can send an email to the Aware Systems and ask them how to do it.

  • HiComponents ImageEn (commercial) - even if the site is very simple, it seems that it is one of the best graphic libraries around.

  • ImageMagick (free) - very well known image processing library. Has Delphi/FPC bindings.

...there are also other alternatives free and commercial but some of them (like GraphicsEx) doesn't know to read multi-page Tiff and for others I don't have so much experience in order to give you an impression.

HTH.