EnumTags method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int EnumTags(AnsiString strFileName, unsigned uFlags, int nPage);

Delphi Syntax

Function EnumTags(strFileName: String; uFlags: L_UINT; nPage: L_INT): L_INT;

Overview

Refer to Implementing TIFF Tags.

Remarks

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

For multi-page TIFF files, you can enumerate the tags from a particular page. Specify the page number on which to enumerate the tags using the nPage parameter.

This method 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.

To read a tag value, call the ReadTag method.

Note that if the bContinue parameter of the OnEnumTags event is set to False, the EnumTags method will stop enumerating the tags and return the value ERROR_USER_ABORT error.

For general information about TIFF tags, refer to Implementing TIFF Tags.

See Also

Elements:

ReadTag method, WriteTag method, SetTag method, OnEnumTags event, ReadTagMemory method, GetTagData method, GetTagType method, GetTagCount method, InfoColorSpace property

Topics:

Raster Images: Getting and Setting File Information

 

Raster Images: Maintaining TIFF Tags