LMarker::Delete

#include "ltwrappr.h"

virtual L_INT LMarker::Delete(uMarker, nCount)

L_UINT uMarker;

/* type of marker */

L_INT nCount;

/* number of markers to delete */

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

Parameter

Description

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.

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.

Returns

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

LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LMarker::Copy, LMarker::Create, LMarker::DeleteIndex, LMarker::Enum, LMarker::EnumMarkersCallBack, LMarker::Free, LMarker::GetCount, LMarker::GetGlobalMarkers, LMarker::GetHandle, LMarker::Insert, LMarker::Load, LMarker::SetAsGlobalMarkers, LMarker::SetHandle, LFile::WriteMetaData, Class Members

Topics:

Raster Image Functions: Markers

 

Working with Markers

Example

#define APP2 0xE2

 

LMarker MarkerSrc;
MarkerSrc
.Load(TEXT("e:\\1.jpg"),0);
MarkerSrc.
Delete ( APP2, 0);