HistDIBGen

#include "BIFILTER.H"

 

HANDLE CALLBACK HistDIBGen(                  HANDLE          hSrcDIB,
HWND     hHisChild,
BYTE        nSelect)

Description

This function makes the histogram of the source device independent bitmap and displays the created histogram in the window specified by hHisChild. It works with 1, 4, 8 or 24 bits/pixel. In case of 24 bits/pixel, only one channel is used from the existing R, G, B channels. The ‘nSelect’ parameter specifies the required channel.

Parameters

HANDLE

hSrcDIB

Source DIB

HWND

hHisChild

Child window for histogram.

BYTE

nSelect

Plane selector in case of 24 bits/pixel.

R/G/B corresponds 1/2/3 values.

Not used in case of 1,4,8 bits/pixel.

Return values

Handle of the newly created DIB on success or NULL on failure.

Programming notes

The width of hHisChild window must be large enough to show the histogram. This means that in case of 8 bits/pixel the width of the client area of the window must be at least 256 pixels.

Requirements

Header :    Declared in BIFilter.h; include BIFilter.h.

Library :    Use BIFilter.lib.

DLLs :       BIFilter.dll.