ReadTagMemory method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int ReadTagMemory(L_HANDLE hMem, unsigned uBufSize, int nPage, unsigned uTag);

Delphi Syntax

Function ReadTagMemory (hMem: L_HANDLE; uBufSize: L_UINT32; nPage: L_INT; uTag: L_UINT): L_INT;

Overview

Refer to Implementing TIFF Tags

Remarks

Reads the specified tag from the specified file in memory. The tag will be set as tag 0 in the control’s internal tag list. Once read, the type, number of data values and actual data values can be retrieved using the GetTagType method, the GetTagCount method and the GetTagData method.

If you use the SaveMemory method to create the file in memory, the SaveMemory method updates its hBuf and iBufSize parameters with the handle and file size information for the file saved in memory. This information can be passed to this ReadTagMemory method in order to read the tag. If SaveMemory is not used to create the file in memory, the user is responsible for obtaining the correct handle and file size information to be passed to this ReadTagMemory method.

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

See Also

Elements:

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

Topics:

Raster Images: Getting and Setting File Information