GetCustomHistogramArray

Gets a custom histogram array.

Syntax

Definition:

HRESULT GetCustomHistogramArray(
    ULONGLONG& nHistogramSize,
    PVOID      pDestBuffer,
    ULONG&     nBins,
    double&    fLowerBound,
    double&    fUpperBound
)

Parameters

Name

Type

Description

nHistogramSize

ULONGLONG&

Maximum buffer size (in) and actual buffer size (out).

pDestBuffer

PVOID

Pointer to the destination buffer.

nBins

ULONG&

Desired number of bins or 0 to keep the default for the corresponding image format (in) and default number of bins (out).

fLowerBound

double&

Lower (inclusive) boundary of the 0-th histogram bin (in), or receive the default if fLowerBound AND fUpperBound are set to 0 (out).

fUpperBound

double&

Upper (exclusive) boundary of the last histogram bin nBins-1 (in), or receive the default if fLowerBound AND fUpperBound are set to 0 (out).

GetCustomHistogramArray 1: Return value

HRESULT