Deletes the specified number of markers of the specified type from the marker collection.


#include "ltwrappr.h"

virtual L_INT LMarker::Delete(uMarker, nCount)


L_UINT uMarker

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 marker types are allowed.

L_INT nCount

Indicates the number of markers to delete. This value is useful only if there is more than one marker of the specified type in the file.

Value Meaning
0 Delete all markers of type uMarker.
> 0 Delete only the first nCount occurrences of type uMarker.

Note: Negative values are not allowed.


Value Meaning
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.

Required DLLs and Libraries


Win32, x64.

See Also




#define APP2 0xE2 
L_INT LMarker__DeleteExample() 
   L_INT nRet; 
   LMarker MarkerSrc; 
   nRet = MarkerSrc.Load(MAKE_IMAGE_PATH(TEXT("ImageProcessingDemo\\Image1.jpg")),0); 
   if(nRet != SUCCESS) 
      return nRet; 
   nRet = MarkerSrc.Delete ( APP2, 0); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help