AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.04.26 15:07 "Floating points to TIFF", by <gandhy@free.fr>
2005.04.26 15:41 "Re: Floating points to TIFF", by Joris Van Damme
2005.04.27 07:20 "Re: Floating points to TIFF", by <gandhy@free.fr>
2005.04.26 21:20 "Re: Floating points to TIFF", by Andrey Kiselev

2005.04.26 15:41 "Re: Floating points to TIFF", by Joris Van Damme

Bastien,

> ... but i get 1byte data in
> output instead of 4bytes !!!
> ...
> TIFFWriteRawStrip(filout, i, raster2, width);

That should be width*4, for your purposes. See
http://www.remotesensing.org/libtiff/man/TIFFWriteRawStrip.3tiff.html, it
explains that the last parameter is supposed to be the 'bytes of raw data', as
opposed to the samples contained therein.

Also, usually, you'll want to use TIFFWriteEncodedStrip,
http://www.remotesensing.org/libtiff/man/TIFFWriteEncodedStrip.3tiff.html,
rather then TIFFWriteRawStrip, though I'm not completely sure in this case...


Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html