| 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 |
Thread2005.04.26 15:41 "Re: Floating points to TIFF", by Joris Van DammeBastien, > ... 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 |
|||||||