ImageGear for C and C++ on Linux v19.10 - Updated
LPFNIG_ART_DELETENOTIFYFUNC
API Reference Guide > ART Component API Reference > ART Component Callback Functions Reference > LPFNIG_ART_DELETENOTIFYFUNC

This function is called whenever a mark is deleted.

Declaration:

 
Copy Code
typedef BOOL (ACCUAPI* LPFNIG_ART_DELETENOTIFYFUNC)(
        HIGEAR hIGear, 
        LPVOID lpPrivate, 
        ART_MARK_INDEX hMarkIndex
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle to the image.
lpPrivate LPVOID A far pointer to the private callback data.
hMarkIndex ART_MARK_INDEX The index of the to-be-deleted mark.

Return Value:

If the callback function returns FALSE, the mark is not deleted. It should return TRUE to allow the mark to be deleted.

Supported Raster Image Formats:

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

Example:

 
Copy Code
BOOL ACCUAPI MyDeleteMarkFunc(        HIGEAR hIGear, LPVOID 
lpPrivate, ART_MARK_INDEX hMarkIndex)
{
/* before deleting the mark, copy it to the clipboard */
ART_edit_copy(hIGear, &hMarkIndex, 1);
return TRUE;
}

Remarks:

If the callback function returns FALSE, the mark is not deleted. It should return TRUE to allow the mark to be deleted.

In order to use this callback, it must first be registered with ART using the function ART_callback_register().