LMarker::Load

Summary

Loads metadata markers (COM and APPn) into a handle.

Syntax

#include "ltwrappr.h"

virtual L_INT LMarker::Load(pszFilename, uFlags)

Parameters

L_TCHAR * pszFilename

Character string that contains the name of the file from which to load the collection of metadata markers.

L_UINT uFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes

Comments

For Exif files, this metadata handle will contain ALL the Exif and GPS comments, stored in APP1. It will also contain the audio information stored in APP2.

The markers can also be retrieved by calling LFile::TransformFile. Each retrieved marker is passed to the LFile::TransformFileCallBack function. There is one important difference between the markers passed to LFile::TransformFileCallBack and those loaded with LMarker::Load:

To save the collection of metadata markers referenced by this object to a file, call the LMarker::SetAsGlobalMarkers function.

NOTE: The comments set with LFileSettings::SetComment will OVERRIDE any comments contained in the metadata markers. For example, if the original file had an author of "Steve" and you call

(CMNT_SZAUTHOR, "John", 5);

the next time you save a file, the author will be John (not Steve). However, all the comments that have not been set will be taken from the metadata handle.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

For an example, refer to LMarker::DeleteIndex.

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.