WindowLevel method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short WindowLevel(ILEADRaster* pRaster);

Overview

Refer to Examining and Altering Bitmaps.

Remarks

(Document/Medical Imaging only) Converts a 12 or 16-bit grayscale image to an 8-bit grayscale or a 24-bit RGB bitmap. This function is available in Document/Medical toolkits only.

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.

This function supports signed data images.

For information on saving bitmaps that have been window leveled, refer to Saving Window-Leveled Bitmaps.

See Also

Elements

LevelLowBit property, LevelHighBit property, LevelLUTLength property, LevelLUT property, GetMinMaxBits method, GetMinMaxVal method

Topics

Raster Images: Palettes

 

Saving Window-Leveled Bitmaps