LevelHighBit property (ILEADRaster)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short LevelHighBit

Overview

Refer to Examining and Altering Bitmaps.

Remarks

(Document/Medical Imaging only) Sets the value of the highest bit considered as image data when painting a 12 or 16-bit grayscale image. Valid values are: 0 <= LevelHighBit <= BitmapBits property. For example, to specify that only the high (most significant) 8 bits of a 16-bit grayscale image are considered part of the image, set Level LowBit property to 8 and LevelHighBit property to 15 (not 16! 15 - 8 + 1 = 8 bits). To consider only the lowest 8 bits, set LevelLowBit to 0 and LevelHighBit to 7 (not 8!).

This property does not change the image data, only the way it is painted. Call WindowLevel method to change the image data to match the display image.

See Also

Elements:

WindowLevel method, LevelLowBit property

Topics:

Raster Images: Palettes