lFlags

Flags that indicate the channel for which to get the histogram and the bits to use in calculating the histogram. The following flags indicate the channel to use. This value is ignored if the bitmap is 12 or 16-bit grayscale. Possible values are:

Value

Meaning

CHANNEL_MASTER

All channels.

CHANNEL_RED

Red channel only.

CHANNEL_GREEN

Green channel only.

CHANNEL_BLUE

Blue channel only.

The following flags determine which bits to use when calculating the histogram. This value is used only if the bitmap is 12 or 16-bit grayscale. Possible values are:

Value

Meaning

HIST_LOWHIGH_BITS

[0x0000] Use the only the bits between the LowBit and HighBit values stored in the bitmap.

HIST_ALL_BITS

[0x0010] Use all the bits for calculating the histogram (the LowBit and HighBit values from the bitmap are ignored.