Handles each marker provided by the calling function LMarker::Enum.
virtual L_INT LMarker::EnumMarkersCallBack (uMarker, uMarkerSize, pMarkerData, pfnLEADCallback, pLEADUserData)
Value that represents the type of marker passed to the callback function. Possible values are range between 0xE0 and 0xFE. Other values are possible. To determine what marker types are allowed, refer to the JPEG specification.
Size of the type of marker indicated in uMarker, in bytes. Must be between 0 and 0xFFFD.
A void pointer that you can use to access a variable or structure containing data associated with the marker in uMarker, that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. This parameter is needed only if uMarkerSize > 0. The marker data should be at least uMarkerSize bytes.
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.
Callback function for writing each enumerated marker. Call this function if you want to insert an extra marker at the current position.
LMarker::EnumMarkersCallBack calls this callback function as it gets the handle of each marker. The callback function is provided by LEADTOOLS and will adhere to the function prototype described in the LEADMARKERCALLBACK Function.
Void pointer that you should pass to pfnLEADCallback if you call it directly.
|SUCCESS||Copy the current marker to the resulting marker collection. This resulting marker collection will be referenced by the marker object when the LMarker::Enum function successfully returns. Continue enumerating the remaining markers.|
|SUCCESS_IGNOREMARKER||Ignore the current marker. The current marker will be removed from the resulting marker collection. Continue enumerating the remaining markers.|
|SUCCESS_IGNOREALLMARKERS||Ignore the current marker and all remaining markers. Abort the enumeration without writing any other markers.|
|SUCCESS_IGNORETHISCOPYALL||Ignore the current marker but copy all the remaining markers to the resulting marker collection. Abort the enumeration but copy all remaining markers|
|SUCCESS_ABORT||Copy this and all remaining markers. Abort the enumeration.|
This function will be called for every marker present in the handle. Return SUCCESS to leave the current marker in the marker collection. Return SUCCESS_IGNOREMARKER to delete the current marker from the collection.
Call pfnLEADCallback to insert a new marker in the collection before the current marker.
For an example, refer to LMarker::Create.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries