TIFF and LibTiff Mail List Archive


2005.10.06 15:19 "[Tiff] Need help", by M. MychaL
2005.10.06 15:46 "Re: [Tiff] Need help", by Joris Van Damme

2005.10.06 15:46 "Re: [Tiff] Need help", by Joris Van Damme

M. MychaL,

i try to use libtiff to open tiff in TBitmap in order to use it with

> TPrinters but i have a problem.

It's best to avoid confusion by mentioning you're using LibTiffDelphi in the beginning of your mail. Most people here are C minded, and I never received any indication of intolerance towards Delphi users of LibTiff, but I guess most subcribers will find it helpfull to be able to identify Delphi-centered LibTiff users right away. Otherwise, those *c++==--d weird char generators on this list may be dangling wondering 'What the hell is TBitmap and TPrinters, anyway?'. ;-)

How can we get the next page from tiff? i tried to use this function "TIFFSetDirectory(OpenTiff, PageNumber);" but that use a lot of memory!! (250MO and even more sometimes on big files)

I'm afraid that's the name of the game, especially if you're using the RGBA functions on 1bit per pixel images and such... TIFFSetDirectory is a good one to use.

If you need more conservative memory use, look into the lower-level access to LibTiff. is a good place to start reading. This type of access does require you to understand what a strip and tile is, and a plane and all that, and what tags to query to derive color space indication and such. Thus, you'll need some TIFF knowledge as well as some extra coding. A good TIFF FAQ is, and the complete TIFF specification is offered by Adobe at

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