2007.06.14 09:52 "[Tiff] Read tiff in pf1bit", by Philip Chan

2007.06.14 10:38 "Re: [Tiff] Read tiff in pf1bit", by Joris Van Damme


I need to write a fax viewer in delphi with libtiffdelphi and I got the code of ReadTiffIntoBitmap from


It use pf32bit to read tiff file. The loading time is really slow compare to other windows fax viewer.

What I need is simple. Just read the monochrome 1bit tiff file into bitmap.

Is there any other way to load the tiff files faster use less memory? like use pf1bit?

I totally agree TIFFRGBA interface, used by that code snippet, is unsuitable for loading monochrome images for the reasons you mention.

You can use the lower level interface TIFFReadEncodedXxx for this. See http://www.remotesensing.org/libtiff/libtiff.html#strips and

http://www.remotesensing.org/libtiff/libtiff.html#tiles, and of course

http://www.remotesensing.org/libtiff/man/index.html. These things are supported in LibTiffDelphi just as they are in LibTiff.

Best regards,

Joris Van Damme
Download your free TIFF tag viewer for windows here: