L_DeleteMarker

#include "l_bitmap.h"

L_LTFIL_API L_INT L_DeleteMarker(hMarkers, uMarker, nCount)

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

Parameters

L_VOID* hMarkers

Handle to a collection of metadata markers. This handle is created by either the L_LoadMarkers function or the L_CreateMarkers function.

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 markers are allowed.

L_INT nCount

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:

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.

Returns

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

Comments

The user can delete all the occurrences of uMarker, or the first few occurrences.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

This example will delete all occurrences of APP2 markers.

#define APP2 0xE2 
 
L_INT DeleteMarkerExample(HANDLE hMarkers) 
 
{ 
   L_INT nRet; 
   nRet = L_DeleteMarker(hMarkers, APP2, 0); 
   return nRet; 
} 

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help