LMarker::DeleteIndex

#include "ltwrappr.h"

virtual L_INT LMarker::DeleteIndex(uIndex)

Deletes the marker at the specified index from the marker collection.

Parameters

L_UINT uIndex

Value that represents the index of the marker to delete.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function allows you to delete a marker with a certain index, regardless of the marker type.

The marker with the specified index MUST exist. Error ERROR_MARKER_INDEX will be returned if you attempt to delete a marker that does not exist.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT LMarker__DeleteIndexExample() 
{ 
   L_INT nRet; 
   LMarker MarkerSrc; 
 
   nRet = MarkerSrc.Load(MAKE_IMAGE_PATH(TEXT("ImageProcessingDemo\\Image1.jpg")),0); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   nRet = MarkerSrc.DeleteIndex ( 0); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.