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:
- hIGear does not reference a valid ImageGear handle.
- There are no marks with a matching index block.