WindowLevel method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax short WindowLevel ();

Overview:  Refer to Examining and Altering Bitmaps.

Remarks

(Medical Imaging 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