GetTagData method (Main Control)

Visual Basic Example
Visual C++ 4.0 Example

Syntax VARIANT GetTagData (long lTag);

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

Functions: GetTagCount method, GetTagType method, ReadTag method, SetTag method, WriteTag method, Comment property, Save method

Topics:  Raster Images: Getting and Setting File Information