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.

Syntax

Status GetHistogramSize(
  IN HistogramFormat format,
  OUT UINT           *NumberOfEntries
);

Parameters

format

Type: HistogramFormat

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

NumberOfEntries

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.

Requirements

   
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

Bitmap