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
January 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.01.18 11:12 "How can I read data information and write it in other TIFF image", by Erkuden Ayala
2007.01.22 09:53 "Re: How can I read data information and write it in other TIFFimage", by Gerben Vos

2007.01.22 09:53 "Re: How can I read data information and write it in other TIFFimage", by Gerben Vos

Erkuden Ayala wrote:

>

Oh, the question is in the subject line. I see. Not very helpful. Also, you
aren't giving us much information about what you want to do exactly.

However, here is some general advice.

The simplest way, for a single-image TIFF, is to open two TIFFs, one for
reading and one for writing, copy the tags using TIFFGetField/TIFFSetField
(see the code of the tiffcp application that comes with libtiff for an
example), then copy the image data using a
TIFFReadScanline/TIFFWriteScanline loop. Then close both TIFFs.

There are many example programs for this on the net and in the archives of
this mailing list. The tiffcp can also be an example, although it does many
things and therefore looks complicated.

					Gerben Vos.