| 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 |
Thread2010.01.09 01:14 "Re: me again...", by Bob FriesenhahnOn Sat, 9 Jan 2010, Kavallieratou Ergina wrote: > I am not sure if in either of > TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1); > TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1); > > the 1 should be 8. I tried all of them but the program always stops at the same point. > any more suggestions ? Please help! If you are not willing to adjust your data, then you can set TIFFTAG_BITSPERSAMPLE to match the actual type you are using. For example, if your data is stored in 'unsigned char' then you could set TIFFTAG_BITSPERSAMPLE to 8 even though it is 8X less space efficient than using a bit-map. Bob -- Bob Friesenhahn bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ |
|||||||