WindowLevel method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int WindowLevel (void);

Delphi Syntax

WindowLevel: Integer;

Overview

Refer to Examining and Altering Bitmaps.

Remarks

(Medical only) Converts a 12 or 16-bit grayscale image to an 8-bit grayscale or a 24-bit color bitmap, if the WindowLevelBitmap property has been set to TRUE.

There are four properties associated with this method: LevelLowBit property, LevelHighBit property, LevelLUT property and LevelLUTLength property. They are all reset to their default values within this method.

This method applies window leveling to the bitmap, changing the image data to match the display image.

This method supports 12 and 16-bit grayscale images. Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.

See Also

Elements:

LevelLowBit property, LevelHighBit property, LevelLUTLength property

 

LevelLUT property, GetMinMaxBits method, GetMinMaxVal method

Topics:

Raster Images: Palettes