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
May 2004

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

2004.05.10 10:59 "libitff", by Kalonji Kabongo
2004.05.11 19:02 "Re: libitff", by Andrey Kiselev

2004.05.11 19:02 "Re: libitff", by Andrey Kiselev

On Mon, May 10, 2004 at 06:59:25AM -0400, Kabongo, Kalonji (DET) wrote:
> I am trying to use libtiff and add a tag.  Can somebody explain to me
> the field_oktochange and field_passcount in the TIFFFieldInfo
> structure. What are they used for ? Would appreciate an answer ASAP.

Some tags has influence on how the image should be written (for example,
it is TileWidth and TileLength parameters), some other tags has nothing
to do with image (such as Artist or Copyright records). The first type
of tags should not be altered once written and has FALSE in
field_oktochange. The second type can be changed in any time, we set
TRUE in field_oktochange for them.

field_passcount defines the need to pass the number of data values in
the buffer. If it is TRUE such a tag should be set using call

 TIFFSetField(tiff, tag, count, data_array);

where 'data_array' has 'count' values. It is used for tags when we
don't know how much data items they will contain in advance.

					Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517