ImageGear for C and C++ on Linux v18.8 - Updated
ART_mark_select_count
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.

Declaration:

 
Copy Code
AT_ERRCOUNT ART_mark_select_count(
        HIGEAR hIGear, 
        LPWORD lpSelected
);

Arguments:

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

Example:

 
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."), 
dwMarkCount);
MessageBox(HWND_DESKTOP,szBuf,NULL,MB_ICONINFORMATION);