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
July 2004

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

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

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

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.