Loads metadata markers (COM and APPn) into a handle.
#include "ltwrappr.h"
virtual L_INT LMarker::Load(pszFilename, uFlags)
Character string that contains the name of the file from which to load the collection of metadata markers.
Reserved for future use. Pass 0.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes |
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:
LFile::TransformFileCallBack receives ALL the markers (metadata and image-related markers)
LMarker::Load loads only the metadata markers
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.
Win32, x64.
For an example, refer to LMarker::DeleteIndex.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document