INTENSITYDETECTDLGPARAMS

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 ;

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.

Member

Description

uStructSize

Size of this structure, in bytes. Use the sizeof operator to calculate this value.

pBitmap

Ignored.

bZoomToFit

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)".

 

uLow

Lowest intensity to detect. Possible values range from 0 – 255.

uHigh

Highest intensity to detect. Possible values range from 0 – 255.

uChannel

A value that indicates the channel to process. Possible values are:

 

Value

 

IDB_CHANNEL_MASTER

 

IDB_CHANNEL_RED

 

IDB_CHANNEL_GREEN

 

IDB_CHANNEL_BLUE

crInColor

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.

crOutColor

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.

 

uDlgFlags

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.

pfnHelpCallback

Ignored.

pHelpCallBackUserData

Ignored.