Deletes the specified number of markers of the specified type from the marker collection.
L_LTFIL_API L_INT L_DeleteMarker(hMarkers, uMarker, nCount)
Value that represents the type of marker to delete. Recommended values are between 0xE0 and 0xFE. Other values are possible, but before using other values, study the JPEG specs to determine which markers are allowed.
Number of markers to delete. This value is useful only if there is more than one marker of the specified type in the file. Possible values are:
|0||Delete all markers of type
|> 0||Delete only the first
Note: Negative values are not allowed.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
The user can delete all the occurrences of
uMarker, or the first few occurrences.
Win32, x64, Linux.
This example will delete all occurrences of APP2 markers.
#define APP2 0xE2
L_INT DeleteMarkerExample(HANDLE hMarkers)
nRet = L_DeleteMarker(hMarkers, APP2, 0);
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries