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
June 2007

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

2007.06.14 09:52 "Read tiff in pf1bit", by Philip Chan
2007.06.14 10:38 "Re: Read tiff in pf1bit", by Joris Van Damme

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

Philip,

Philip Chan wrote:
> I need to write a fax viewer in delphi with libtiffdelphi and I got
> the code of ReadTiffIntoBitmap from
>
> http://www.asmail.be/msg0055571626.html
>
> 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
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html