EnumFileTags method (ILEADRasterIO)

Visual Basic Example

Visual C++ 5.0 example

 

Syntax

short EnumFileTags(BSTR bstrFileName, long lPage, long uFlags);

Overview

Refer to Implementing TIFF Tags

Remarks

Enumerates all the tags in a file. Currently, only TIFF and Exif files contain tags.

For multipage TIFF files, you can enumerate the tags from a particular page.

This function enumerates the standard TIFF tags and the user tags. Standard TIFF tags are less than 32767. User TIFF tags are usually between 32768 and 65535.

If you abort firing the EnumTags event by setting the StopFireEnumTags property to TRUE, then the EnumTags method returns an error.

Do not attempt to use the DeleteTag method to delete tags from inside an EnumTags event function. If you want to delete tags that you enumerate, use the EnumTags event to add the tags to a list. Upon returning from the EnumFileTags method, you can delete all the tags from the list.

To read a tag value, call the ReadTag method.

See Also

Elements:

ReadTag method, WriteTag method, SetTag method, GetTagData method, EnumTags event, StopFireEnumTags property

Topics

Raster Images: Maintaining TIFF Tags