Sets the metadata markers to be used in the current thread.
#include "ltwrappr.h"
virtual L_INT LMarker::SetAsGlobalMarkers(uFlags)
Reserved for future use. Pass 0.
| Value | Meaning | 
|---|---|
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
All save operations performed in this thread will use these markers until LMarker::SetAsGlobalMarkers is called again.
A copy of these markers will be used, so you can delete the marker object when LMarker::SetAsGlobalMarkers returns.
Comments set with LFileSettings::SetComment will take precedence over any comments contained in the markers.
Tags set with LFileSettings::SetTag will take precedence over any user-defined tags contained in the markers.
If the LFile::SaveXXX function is instructed to save a stamp, the stamp will be regenerated from the bitmap and will override whatever Exif stamp is present in the markers.
Win32, x64.
L_INT LMarker__SetAsGlobalMarkersExample(L_TCHAR * pszFile){L_INT nRet;LMarker MyMarker;LBitmap Bitmap;// load metadata infonRet = MyMarker.Load(pszFile, 0);if(nRet != SUCCESS)return nRet;// load the bitmapnRet = Bitmap.Load(pszFile);if(nRet != SUCCESS)return nRet;// modify the bitmap. In this case, flip itnRet = Bitmap.Flip();if(nRet != SUCCESS)return nRet;// set the metadata markers so they are used in the next savenRet = MyMarker.SetAsGlobalMarkers(0);if(nRet != SUCCESS)return nRet;// save the filenRet = Bitmap.Save(MAKE_IMAGE_PATH(TEXT("FlippedFile.jpg")), FILE_EXIF_JPEG, 0, 2, 0, NULL);if(nRet != SUCCESS)return nRet;// reset the markers so they are not used for the next savenRet = MyMarker.SetHandle(NULL, TRUE);if(nRet != SUCCESS)return nRet;nRet = MyMarker.SetAsGlobalMarkers(0);if(nRet != SUCCESS)return nRet;// free memory containing the metadatanRet = MyMarker.Free();if(nRet != SUCCESS)return nRet;return SUCCESS;}
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
