GetTagData method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

Variant __fastcall GetTagData(Word uTag);

Delphi Syntax

GetTagData (uTag : word): Variant;

Overview

Refer to Implementing TIFF Tags

Remarks

Returns the data associated with the specified tag.

The number of values in the array can be retrieved using GetTagCount method. The type of values can be retrieved using GetTagType method. Note that if the type is TAG_RATIONAL, then each element is represented with two LONG values: the numerator and denominator. So for a Rational tag, you have twice as many entries in the array: the even index elements in the array contain the numerators and the odd indexes contain the denominators.

For more information on setting tags, refer to the SetTag method.

See Also

Elements:

EnumTags method, OnEnumTags event, GetTagCount method, GetTagType method, ReadTag method, SetTag method, WriteTag method, Comment property, Save method

Topics:

Raster Images: Getting and Setting File Information