The INTENSITYDETECTDLGPARAMS structure provides information used to initialize the dialog box created by the LDialogColor::DoModalIntensityDetect function. After the user closes the dialog box, this structure is updated with information about the user's selections.
typedef struct _INTENSITYDETECTDLGPARAMS
{
L_UINT uStructSize;
pBITMAPHANDLE pBitmap;
L_BOOL bZoomToFit;
L_UINT uLow;
L_UINT uHigh;
L_UINT uChannel;
COLORREF crInColor;
COLORREF crOutColor;
L_UINT32 uDlgFlags;
LTCOMMDLGHELPCB pfnHelpCallback;
L_VOID *pHelpCallBackUserData;
} INTENSITYDETECTDLGPARAMS, * LPINTENSITYDETECTDLGPARAMS;
Size of this structure, in bytes. Use the sizeof operator to calculate this value.
Ignored.
Flag that indicates the initial zoom level for previewing the image. Possible values are:
Value | Meaning |
---|---|
TRUE | Set the initial zoom level to "Zoom to fit". |
FALSE | Set the initial zoom level to "Normal (1:1)". |
Lowest intensity to detect. Possible values range from 0 to 255.
Highest intensity to detect. Possible values range from 0 to 255.
A value that indicates the channel to process. Possible values are:
The color used to fill those pixels having an intensity value between uLow and uHigh. This parameter has no effect if the uChannel parameter is set to IDB_CHANNEL_MASTER. If for example the uChannel parameter is set to IDB_CHANNEL_RED, then the red component of crInColor will be used to fill the pixels having a red component value between uLow and uHigh.
The color used to fill those pixels having an intensity value less than uLow or greater than uHigh. This parameter has no effect if the uChannel parameter is IDB_CHANNEL_MASTER. If for example the uChannel parameter is set to IDB_CHANNEL_RED, then the red component of crOutColor will be used to fill the pixels having a red component value less than uLow or greater than uHigh.
User interface flags for this dialog, which determine the layout and action of the dialog. Possible values are:
Value | Meaning |
---|---|
DLG_INTENSITYDETECT_SHOW_CONTEXTHELP | 0x00000002] dialog should contain a context sensitive help icon. |
Ignored.
Ignored.