SetTag method (ILEADRasterIO)
short SetTag (long lTag, short iType, long lCount, ILEADRasterVariant * vData); | |
Overview |
Refer to Implementing TIFF Tags |
Remarks
Sets tags to be written to a file. The set tags will actually be written when the WriteTag method or one of the SaveXXX methods is called. This process is similar to the process of writing comments to files using the Comment property and the WriteComment method or Save method.
Only TIFF files support tags. The TIFF specification reserved tags 1 to 32767 for general use (restricted tags) and recommends that tags 32768 to 65535 should be used for application use (user-defined tags). To avoid two applications using the same user-defined tag, it is also recommended that the user-defined tags should be registered with the TIFF administrator (Adobe).
Note: |
When LEADTOOLS saves a TIFF/Exif image that contains comments and tags, the comments and tags will be written first, followed by the image data. This order is not configurable. |
The contact address for the TIFF administrator, as of Nov 5, 1999 is:
Adobe Developers Association
1585 Charleston Road
P.O. Box 7900
Mountain View, CA 94039
E-mail: devsup-person@adobe.com
The control will maintain a list of tags that have been set. To remove a tag from the list, call SetTag(lTag, 0, 0, NULL).
To remove all tags from the list, call SetTag(0,0,0,NULL). Note that ReadTag method uses tag 0, so you cannot set it by calling SetTag.
See Also