Visual Basic (Declaration) | |
---|---|
Public Sub WindowLevel( _ ByVal lowBit As Integer, _ ByVal highBit As Integer, _ ByVal palette() As RasterColor, _ ByVal mode As RasterWindowLevelMode _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void WindowLevel( int lowBit, int highBit, RasterColor[] palette, RasterWindowLevelMode mode ) |
Managed Extensions for C++ | |
---|---|
public: void WindowLevel( int lowBit, int highBit, RasterColor[]* palette, RasterWindowLevelMode mode ) |
C++/CLI | |
---|---|
public: void WindowLevel( int lowBit, int highBit, array<RasterColor>^ palette, RasterWindowLevelMode mode ) |
Parameters
- lowBit
- Value indicating the low bit used for leveling. 0 <= LowBit <= HighBit <= (11 for 12-bit grayscale or 15 for 16-bit grayscale).
- highBit
- Value indicating the high bit used for leveling. 0 <= LowBit <= HighBit <= (11 for 12-bit grayscale or 15 for 16-bit grayscale).
- palette
- Optional lookup table that can be used to implement a user defined conversion. For every intensity value between 0 and 2 raised to the power of (HighBit - LowBit + 1)-1 there should be a corresponding entry in the lookup table that contains a color. If palette is null (Nothing in Visual Basic), the conversion is a normal shift (right or left) and the painted image is 8-bit grayscale. If palette is not null (Nothing in Visual Basic), the painted image is a 24-bit image.
- mode
- Value indicating whether palette is used by the paint and image processing methods or only by the paint methods.
This method is available in the (Document/Medical only) Toolkits.
Provides "on demand" window leveling for the paint methods and does not alter the image data. To convert the image data to a window leveled image, use WindowLevelCommand.
If RasterWindowLevelMode.PaintAndProcessing is specified, then all image processing methods will take the palette into account.
Only TIFF and DICOM file formats are capable of saving images that have been window-leveled. Images can be window-leveled by calling WindowLevel and specifying RasterWindowLevelMode.PaintAndProcessing for the mode parameter, by using the WindowLevelCommand or by loading an image from a file format that supports Window Leveling. If a window-leveled image is saved as any other file format, the image data will be converted before being saved. For more information, refer to Saving Window-Leveled Images.
For more information, refer to Processing an Image.
For more information, refer to Grayscale Images.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family