Bitmap::GetHistogramSize method

The Bitmap::GetHistogramSize returns the number of elements (in an array of UINTs) that you must allocate before you call the Bitmap::GetHistogram method of a Bitmap object.


Status GetHistogramSize(
  IN HistogramFormat format,
  OUT UINT           *NumberOfEntries



Type: HistogramFormat

Element of the HistogramFormat enumeration that specifies the pixel format of the bitmap.


Type: UINT*

Pointer to a UINT that receives the number of entries.

Return Value

Type: Type: Status

If the method succeeds, it returns Ok, which is an element of the Status enumeration.

If the method fails, it returns one of the other elements of the Status enumeration.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See Also