|AWARE [SYSTEMS]||Imaging expertise for the Delphi developer|
|TIFF and LibTiff Mailing List Archive|
LibTiff Mailing List
2006.04.11 16:43 "Re: LibTiffDelphi problem with WriteEncodedStrip Newbee", by Thorsten Hagelstein
Joris, thank you very much for the code you posted. It really worked fine. Now I tried to understand the code to alter it, because I want to use more kinds of compression. As I understood, to use TIFF-Compression CCITT3 or 4 I need for example Bitmaps with PixelFormat=pf1bit. I tried to alter the code you posted like this: TIFFSetField(OpenTiff,TIFFTAG_SAMPLESPERPIXEL,1); TIFFSetField(OpenTiff,TIFFTAG_BITSPERSAMPLE,1); TIFFSetField(OpenTiff,TIFFTAG_COMPRESSION,COMPRESSION_CCITTFAX3); And disabled the code for making sure that it is pf24bit or pf32bit. But it doesn't work so far. I think I forgot something. Or is it just because I understood your code false? Can you please explain me? I'm really new at this TIFF-things... *confused* Thank you very much, Greetz Thorsten
Editor's note: This mail was not originally archived, and has been reconstructed from quotes.