DISPWLEVELACTIONPROPS

typedef struct tagDISPWLEVELACTIONPROPS
{
   DISPCONTAINERACTIONPROPS DispContainerActionProps;
   COLORREF rgbColorStart;
   COLORREF rgbColorEnd;
   L_INT nWidth;
   L_INT nCenter;
   L_UINT uFillType;
   L_BOOL bRelativeSensitivity;
} DISPWLEVELACTIONPROPS, * pDISPWLEVELACTIONPROPS;

The DISPWLEVELACTIONPROPS structure contains the properties for controlling the Window Level action.

Member

Description

DispContainerActionProps

A structure that contains the general action properties.

rgbColorStart

Starting color value for the gradient. This member is applied on the container level. Default is black

rgbColorEnd

Ending color value for the gradient. This member is applied on the container level. Default is white.

nWidth

The width of the window level gradient. This member is applied on the sub cell level.

nCenter

The center of the window level gradient. This member is applied on the sub cell level.

uFillType

A flag that indicates the LUT type. This member is applied on the sub cell level. Possible values are:

 

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.

bRelativeSensitivity

Flag that indicate whether to allow the control to adjust the window level action mouse sensitivity based on the bitmap lookup table type. This will raise the sensitivity level on the bitmap with relatively large lookup tables. Possible values are:

 

Value

Meaning

 

TRUE

Use the relative sensitivtity feature.

 

FALSE

Don’t use the relative sensitivity feature. This is the default value.

Comments

For each action supported by the image viewer, there are general properties and specific properties. The general properties are those that are common to all actions and are applied at the container level. Each structure specific for an action contains a member that is a DISPCONTAINERACTIONPROPS structure and one or more other members. The DISPCONTAINERACTIONPROPS structure contains "general properties" that are common to all actions. The other members of the structures are considered "general properties" or "specific properties", depending on whether they are applied at the container level or the cell level. Those members that are applied at the container level are also considered "general properties". Members that are applied at the cell level or the sub-cell level are considered "specific properties".

To get or set the general action properties and any "Container-level" properties in this structure, call L_DispContainerGetActionProperties or L_DispContainerSetActionProperties with uFlags to CONTAINER_ACTION_CONTAINERLEVEL.

To get or set the specific action properties, "Cell-level" or "Sub-cell level" properties in this structure, call L_DispContainerGetActionProperties or L_DispContainerSetActionProperties with uFlags to CONTAINER_ACTION_CELLLEVEL.