| 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 |
Thread2004.04.02 14:54 "Re: TIFFGetField and TIFFSetField", by Frank WarmerdamBreda McColgan wrote: > Hi Frank, > > another question for you: should the list of tags in TIFFGetField and > TIFFSetField be identical? > > > The following tags are listed in TIFFGetField, but not in TIFFSetField: > o TIFFTAG_DATATYPE > o TIFFTAG_STRIPBYTECOUNTS > o TIFFTAG_STRIPOFFSETS > o TIFFTAG_TILEBYTECOUNTS > o TIFFTAG_TILEOFFSETS > > Should these tags be added to TIFFSetField? Brenda, The strip and tile offsets and counts should not be set with TIFFSetField(). They are set internally as the image is written. The TIFFTAG_DATATYPE apparently serves a similar purpose to TIFFTAG_SAMPLEFORMAT and should not be written in new products. It is only available for reading old products. In short, I think it is fine that they are not listed for TIFFSetField(). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent |
|||||||