2003.06.25 12:18 "Pb with TIFFWriteScanline", by Marine Martin-Guillerez

2003.06.25 12:51 "RE: Pb with TIFFWriteScanline", by Rainer Wiesenfarth

For writing an image TIFF i use the following code:

      TIFFSetField (ImageDst, TIFFTAG_COMPRESSION, Compress);
      TIFFSetField (ImageDst, TIFFTAG_PLANARCONFIG, PlanarConf);
      TIFFWriteDirectory (ImageDst);

Here's the problem: do not call TIFFWriteDirectory() explicitely, as it writes out the current directory and starts a new one. Commenting out this line should solve your problem.

- --
- -- -----------------------------------------------------------------
- -- Dipl.-Inform. Rainer Wiesenfarth
- -- Inpho GmbH                    E-mail: Rainer.Wiesenfarth@Inpho.de
- -- Smaragdweg 1                  Phone : +49 711 22881-10
- -- 70174 Stuttgart               Fax   : +49 711 22881-11
- -- Germany                       URL   : http://www.inpho.de