ImageGear for C and C++ on Linux v18.10 - Updated
IG_IP_histo_clear
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Functions > IG_IP_histo_clear

This function will clear an array of histogram bins.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_histo_clear (
        LPDWORD lpHisto, 
        UINT nNumberOfBins 
);

Arguments:

Name Type Description
lpHisto LPDWORD Far pointer to an array of bins (each a DWORD) to be cleared.
nNumberOfBins UINT Number of bins to clear.

Return Value:

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

Supported Raster Image Formats:

This function does not process image pixels.

Example:

See the example under the IG_IP_histo_tabulate() function.

Remarks:

Call this function prior to calling IG_IP_histo_tabulate(), unless you mean to accumulate onto existing contents of the bins.