ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > ART Component API Reference > ART Component Functions Reference > Mark Management Functions > ART_mark_select_count

This function counts the number of marks selected by the user or selected by calling ART_mark_select() function.


Copy Code
AT_ERRCOUNT ART_mark_select_count(
        HIGEAR hIGear, 
        LPWORD lpSelected


Name Type Description
hIGear HIGEAR HIGEAR handle to the image.
lpSelected LPWORD A far DWORD pointer that returns the number of selected marks.

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++.


Copy Code
HIGEAR hIGear; /* HIGEAR handle of image  */
AT_ERRCOUNT nErrcount; /* tally of IG errors on   */
/* stack     */
char szBuf[100]; /* Temporary string buffer */
nErrcount = ART_mark_select_count(hIGear, &dwMarkCount);
wsprintf(szBuf, _TEXT("There are %ld marks selected."), 
Is this page helpful?
Yes No
Thanks for your feedback.