This function counts the number of unique colors in the specified rectangular area of the image.
|
Copy Code
|
|
|---|---|
AT_ERRCOUNT ACCUAPI IG_IP_color_count_get(
HIGEAR hIGear,
LPAT_RECT lpRect,
LPAT_INT lpCount
);
|
|
| Name | Type | Description |
|---|---|---|
| hIGear | HIGEAR | Image whose count colors are to be counted. |
| lpRect | LPAT_RECT | Rectangle in which to count colors (NULL for the whole image). |
| lpCount | LPAT_INT | Pointer to AT_INT to receive number of colors. |
Returns the number of ImageGear errors that occurred during this function call.
All pixel formats supported by ImageGear for C and C++.
Pixel Access