ImageGear for C and C++ on Windows v19.10 - Updated
ART_mark_delete
API Reference Guide > ART Component API Reference > ART Component Functions Reference > Mark Management Functions > ART_mark_delete

This function deletes the mark whose index block value is the same as hMarkIndex.

Declaration:

 
Copy Code
AT_ERRCOUNT ART_mark_delete(
        HIGEAR hIGear, 
        ART_MARK_INDEX hMarkIndex
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle to the image.
hMarkIndex ART_MARK_INDEX Mark Identifier.

Return Value:

Returns the number of ImageGear errors that occurred during the function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

Annotation

Example:

 
Copy Code
HIGEAR hIGear;  /* HIGEAR handle of image */
ART_MARK_INDEX hMarkDelete, hMarkIndex; /* Mark index  */
   /* numbers */
ART_mark_selected_first(hIGear, &hMarkIndex);
if (hMarkIndex != ART_MARK_INVALID)
{
hMarkDelete = hMarkIndex; 
/* Set mark to be deleted to  */ 
   /* current index number   */
ART_mark_delete(hIGear, hMarkDelete);
}

Remarks:

An error is set if any of the following conditions are met: