AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.07.01 23:09 "[Tiff] MINISBLACK not working for COMPRESSION_CCITT_T6 document", by James, Ron
2004.07.02 15:28 "Re: [Tiff] MINISBLACK not working for COMPRESSION_CCITT_T6 document", by Jason Summers

2004.07.01 23:09 "[Tiff] MINISBLACK not working for COMPRESSION_CCITT_T6 document", by James, Ron

I'm making the following calls:

    TIFFSetField(iTFile, TIFFTAG_COMPRESSION, COMPRESSION_CCITT_T6);

    TIFFSetField(iTFile, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);

And my document is created in reverse - i.e. white text on a black background.

So I change the 2ns call as follows:

    TIFFSetField(iTFile, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISWHITE);

And still get the same effect - white text on black.

However if I switch the COMPRESSION to COMPRESSION_PACKBITS, the TIFFTAG_PHOTOMETRIC calls switch between whits on black and black on white. What am I missing? How can I get a black text on white document using CCITT_T6?

Many thanks

Ron James
Sr. Software Engineer
EnvoyWorldWide, Inc.
781.482.2110
www.envoyworldwide.com

Communicate. Transact. Succeed.