| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2004.07.26 19:33 "Re: Saving multiple images to a tiff file...", by Frank WarmerdamSanjay,
Reviewing some of my multi-page implementations, it appears you should
be calling TIFFCreateDirectory() for each new directory you want to
create with the exception of the first (it is implicitly created when the
file is created).
for (k = 0; k < frameCount; k++) {
if( k > 0 )
TIFFCreateDirectory( tiff );
data = image->frameDimensionList [j].frames [k];
...
TIFFWriteDirectory (tiff);
}
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
Editor's note: This mail was not originally archived, and has been reconstructed from quotes. |
|||||||