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
January 2010

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

2010.01.08 23:53 "me again...", by Kavallieratou Ergina
2010.01.09 01:14 "Re: me again...", by Bob Friesenhahn
2010.01.11 09:47 "Re: me again...", by Gerben Vos

2010.01.09 01:14 "Re: me again...", by Bob Friesenhahn

On 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/