SetMinMaxBits method (ILEADRaster)

Visual Basic example

Visual C++ example

 

Syntax

short SetMinMaxBits(short iMinBit, short iMaxBit)

Overview

Refer to Examining and Altering Bitmaps.

Remarks

(Document/Medical Toolkits Toolkits only) Sets the minimum and maximum bits of the pixels in a bitmap. These values are not affected by the LevelLowBit or LevelHighBit properties.

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

You can call the GetMinMaxBits method to have LEADTOOLS calculate the minimum and maximum bits of the pixels in a bitmap. If you wish to override these values, call SetMinMaxBits.

This method supports signed data images.

See Also

Elements:

GetMinMaxVal method, MinBit property, MaxBit property, WindowLevel method

Topics:

Raster Images: Palettes