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.

Members

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 to 255.

uHigh

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

uChannel

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

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.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Common Dialog C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.