WindowLevelLUT property (LEADDlgColor Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

COLOREF WindowLevelLUT[L_UINT uIndex]

Delphi Syntax

WindowLevelLUT [uIndex: L_UINT]: COLORREF

Overview

Refer to Using Imaging Common Dialogs.

Remarks

(Read Only) Gets a color stored in the Window Level Lookup Table (LUT) generated using the WindowLevel dialog box. The LUT specifies a remapping palette that can be used to change the color of every pixel painted on the screen. For each pixel, WindowLevelLowBit property and WindowLevelHighBit property are used to generate a value between 0 and WindowLevelLUTLength - 1. This value is used as an index into the WindowLevelLUT palette to obtain the corresponding color. By default the interval 0 to WindowLevelLUTLength - 1 is remapped to 0 to 255 and the corresponding gray value is used.

See Also

Elements:

ShowWindowLevelDlg method, WindowLevelLUTLength property, WindowLevelLowBit property, WindowLevelHighBit property, WindowLevelLow property, WindowLevelHigh property, WindowLevelStartColor property, WindowLevelEndColor property, WindowLevelFactor property, WindowLevelFlags property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events