LevelLUT property (ILEADRaster)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

COLORREF LevelLUT (short iIndex);

Overview

Refer to Examining and Altering Bitmaps.

Remarks

(Document/Medical only) Gets or sets a color stored in the Window Level Look UP Table (LUT). The LUT specifies a remapping palette that can be used to change the color of every pixel painted on the screen. For each pixel, LevelLowBit property and LevelHighBit property are used to generate a value between 0 and LevelLUTLength - 1. This value is used as an index into the LevelLUT palette to obtain the corresponding color. By default the interval 0 to LevelLUTLength - 1 is remapped to 0 to 255 and the corresponding gray value is used.

See Also

Elements:

LevelLowBit property, LevelHighBit property, LevelLUTLength property, LevelLUT property, WindowLevel method

Topics:

Raster Images: Palettes

 

Using Color Values in LEADTOOLS