The HISTOGRAMDLGPARAMS structure provides information used to initialize the dialog box created by the LDialogImage::DoModalHistogram function.
typedef struct _HISTOGRAMDLGPARAMS
{
L_UINT uStructSize;
pBITMAPHANDLE pBitmap;
L_UINT64 *puMasterHistogram;
L_UINT uMasterHistogramLen;
L_UINT64 *puRedHistogram;
L_UINT uRedHistogramLen;
L_UINT64 *puGreenHistogram;
L_UINT uGreenHistogramLen;
L_UINT64 *puBlueHistogram;
L_UINT uBlueHistogramLen;
COLORREF crMasterPen;
COLORREF crRedChannelPen;
COLORREF crGreenChannelPen;
COLORREF crBlueChannelPen;
L_UINT uHistogramFlags;
L_UINT32 uDlgFlags;
LTCOMMDLGHELPCB pfnHelpCallback;
L_VOID *pHelpCallBackUserData;
} HISTOGRAMDLGPARAMS, * LPHISTOGRAMDLGPARAMS;
Size of this structure, in bytes. Use the sizeof operator to calculate this value.
Ignored.
An array of unsigned integers that charts the number of times each intensity level occurs in the image. Set this member to initialize the master histogram chart. If this member is NULL, then the pBitmap member must be valid and vice versa. The puMasterHistogram, puRedHistogram, puGreenHistogram and puBlueHistogram members must all be valid to be considered as the source of the histogram tables.
Length of the puMasterHistogram array, in bytes.
An array of unsigned integers that charts the number of times each intensity level occurs in the image. Set this member to initialize the red histogram chart. If this member is NULL, then the pBitmap member must be valid and vice versa. The puMasterHistogram, puRedHistogram, puGreenHistogram and puBlueHistogram members must all be valid to be considered as the source of the histogram tables.
Length of the puRedHistogram array, in bytes.
An array of unsigned integers that charts the number of times each intensity level occurs in the image. Set this member to initialize the green histogram chart. If this member is NULL, then the pBitmap member must be valid and vice versa. The puMasterHistogram, puRedHistogram, puGreenHistogram and puBlueHistogram members must all be valid to be considered as the source of the histogram tables.
Length of the puGreenHistogram array, in bytes.
An array of unsigned integers that charts the number of times each intensity level occurs in the image. Set this member to initialize the blue histogram chart. If this member is NULL, then the pBitmap member must be valid and vice versa. The puMasterHistogram, puRedHistogram, puGreenHistogram and puBlueHistogram members must all be valid to be considered as the source of the histogram tables.
Length of the puBlueHistogram array, in bytes.
COLORREF value that specifies the plotting color for the master channel histogram chart. To use this member, the DLG_HISTOGRAM_USERPENCOLORS flag must be set in uDlgFlags. You can specify a COLORREF value, such as the return value of the Windows RGB macro, or you can use the PALETTEINDEX macro to specify a palette color.
COLORREF value that specifies the plotting color for the red channel histogram chart. To use this member, the DLG_HISTOGRAM_USERPENCOLORS flag must be set in uDlgFlags. You can specify a COLORREF value, such as the return value of the Windows RGB macro, or you can use the PALETTEINDEX macro to specify a palette color.
COLORREF value that specifies the plotting color for the green channel histogram chart. To use this member, the DLG_HISTOGRAM_USERPENCOLORS flag must be set in uDlgFlags. You can specify a COLORREF value, such as the return value of the Windows RGB macro, or you can use the PALETTEINDEX macro to specify a palette color.
COLORREF value that specifies the plotting color for the blue channel histogram chart. To use this member, the DLG_HISTOGRAM_USERPENCOLORS flag must be set in uDlgFlags. You can specify a COLORREF value, such as the return value of the Windows RGB macro, or you can use the PALETTEINDEX macro to specify a palette color.
Histogram flags, used to 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 only the bits between the LowBit and HighBit values stored in the bitmap handle. |
HIST_ALL_BITS | [0x0010] Use all the bits for calculating the histogram (the LowBit and HighBit values from the bitmap handle are ignored. |
User interface flags for this dialog, which determine the layout and action of the dialog. Possible values are:
Value | Meaning |
---|---|
DLG_HISTOGRAM_SHOW_CONTEXTHELP | [0x00000001] dialog should contain a context sensitive help icon. |
DLG_HISTOGRAM_SHOW_VIEWSTYLE | [0x00000002] dialog should contain the view styles option. |
DLG_HISTOGRAM_USERPENCOLORS | [0x00000004] flag that indicates that the crMaster, crRedChannel, crGreenChannel, and crBlueChannel members are valid |
Ignored.
Ignored.