1998.05.13 04:44 "Reading concatenated tiff files", by Richard Beare

1998.05.14 07:53 "Re: Reading concatenated tiff files", by Bruno Ledoux

Hi,

Storing multiple images in a TIFF file not discouraged at all, and works very well (we currently use it to store multiple resolution of the same scanned image in one file).

To acces one specific image we do the following:

     // Open tiff file in a standard way.
     tif = TIFFOpen("file","r");
     // Set the tiff directory you wan't to access
     // (res ranges from 0 to number of image minus one)
     TIFFSetDirectory(tif,(tdir_t)res);
     // Read whatever you want in current image.
     TIFFGetField(...);

Hope this helps,

Bruno,

 ----------------------------------------------------------
            Bruno LEDOUX
            PPC Multimedia, 7 rue du Gabian 98000 MONACO
            http://www.ppc.mc
            tel.: (+377) 97 98 41 60
            fax: (+377) 97 98 41 61