ImageGear Professional DLL v18.1 for Windows
IG_IP_color_count_get
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Functions > IG_IP_color_count_get

Glossary Item Box

This function counts the number of unique colors in the specified rectangular area of the image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_color_count_get(
        HIGEAR hIGear, 
        LPAT_RECT lpRect, 
        LPAT_INT lpCount
);

Arguments:

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.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear Professional.

Sample:

Pixel Access

©2014. Accusoft Corporation. All Rights Reserved.