| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2007.06.14 10:38 "Re: Read tiff in pf1bit", by Joris Van DammePhilip, 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 |
|||||||