LEADTOOLS Common Dialog C++ Class Library Help > Quick Reference > Data Types > WINDOWLEVELDLGPARAMS |
typedef struct _WINDOWLEVELDLGPARAMS
{
L_UINT uStructSize ;
pBITMAPHANDLE pBitmap ;
L_BOOL bZoomToFit;
L_RGBQUAD * pLUT ;
L_UINT32 uLUTLength ;
L_UINT uLowBit ;
L_UINT uHighBit ;
L_INT nLow ;
L_INT nHigh ;
COLORREF crStart ;
COLORREF crEnd ;
L_INT nFactor ;
L_UINT32 uWindowLevelFlags;
L_UINT32 uDlgFlags ;
LTCOMMDLGHELPCB pfnHelpCallback ;
L_VOID *pHelpCallBackUserData ;
} WINDOWLEVELDLGPARAMS, * LPWINDOWLEVELDLGPARAMS;
The WINDOWLEVELDLGPARAMS structure provides information needed to the LDialogColor::DoModalWindowLevel function.
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)". |
pLUT |
Pointer to the look-up table, which will be filled by the dialog. |
|
uLUTLength |
Length of the look-up table. |
|
uLowBit |
Value indicating the low bit used for leveling. |
|
uHighBit |
Value indicating the high bit used for leveling. |
|
nLow |
Variable to be updated with the low value entered through the dialog. |
|
nHigh |
Variable to be updated with the high value entered through the dialog. |
|
crStart |
Variable to be updated with the starting color value entered through the dialog. |
|
crEnd |
Variable to be updated with the ending color value entered through the dialog. |
|
nFactor |
Value that indicates the factor to be applied in the function operation specified in the uWindowLevelFlags parameter. This parameter is used only if uWindowLevelFlags is FILLLUT_EXPONENTIAL, FILLLUT_LOGARITHMIC or FILLLUT_SIGMOID. If FILLLUT_EXPONENTIAL or FILLLUT_SIGMOID flag is selected its value range from 1000 to -1000. If FILLLUT_LOGARITHMIC flag is selected its value range form 0 to 1000. If nFactor = 0, the lookup table will be filled linearly. |
|
uWindowLevelFlags |
Flags that indicate how the range is used to fill the LUT and the type of LUT. |
|
|
The following flags indicate how the range is used to fill the LUT: |
|
|
Value |
Meaning |
|
FILLLUT_INSIDE |
[0x0001] Fill the LUT between nLow and nHigh. ( inside the nLow...nHigh range ) |
|
FILLLUT_OUTSIDE |
[0x0002] Fill the LUT below nLow and above nHigh. ( outside the nLow...nHigh range ) |
|
The following flags indicate the LUT type: |
|
|
Value |
Meaning |
|
FILLLUT_LINEAR |
[0x0010] LUT is linear. |
|
FILLLUT_EXPONENTIAL |
[0x0020] LUT is exponential. |
|
FILLLUT_LOGARITHMIC |
[0x0030] LUT is logarithmic. |
|
FILLLUT_SIGMOID |
[0x0040] LUT is sigmoid. |
uDlgFlags |
User interface flags for this dialog which determines the layout and action of the dialog. Possible values are: |
|
|
Value |
Meaning |
|
DLG_WINDOWLEVEL_AUTOPROCESS |
[0x00000001] process the image on OK. You should pass a valid bitmap in the pBitmap field of this structure. |
|
DLG_WINDOWLEVEL_SHOW_CONTEXTHELP |
[0x00000002] dialog should contain context sensitive help icon. |
|
DLG_WINDOWLEVEL_SHOW_PREVIEW |
[0x00000004] show preview of the image in the dialog. You should pass a valid bitmap in the pBitmap field of this structure. |
|
DLG_WINDOWLEVEL_SHOW_TOOL_ZOOMLEVEL |
[0x00000008] show the "Zoom to fit" and "Zoom Normal" toolbar buttons. The DLG_HUE_SHOW_PREVIEW flag must be set in order to show these buttons. |
|
DLG_WINDOWLEVEL_SHOW_RANGE |
[0x00000010] show the Range combo in the dialog. |
pfnHelpCallback |
Ignored. |
|
pHelpCallBackUserData |
Ignored. |