2005.03.15 17:56 "[Tiff] Need to write CCITT T.6 encoded TIFF file data directly to memory buffer", by Roger Watkins

2005.03.15 18:09 "Re: [Tiff] Need to write CCITT T.6 encoded TIFF file data directly tomemory buffer", by Joris Van Damme

Roger,

Based upon reading the archives, I expect direct load into a TMemoryStream is a little specific to ask of libTIFF

It isn't. LibTiffDelphi includes support for reading from and writing to a TStream. I don't recommend you use LibTiffDelphi directly from within your BCB code, of course, I don't even know if that's possible. But you could look at the pascal code in the LibTiffDelphi.pas unit and translate the parts handling the TStream to BCB C code.

(For people not familiar with this stuff: Delphi's VCL library that includes this TStream thingy is used also in the Borland C++ Builder environment. Yes, that's right, that's C users depending on a Pascal library instead of the other way around.)

LibTiffDelphi is available for free download here:

http://www.awaresystems.be/imaging/tiff/delphi.html

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