SetWindowLevel Method

Summary

Sets the window level width and center values for the image.

Syntax
C#
VB
C++
public virtual void SetWindowLevel( 
   int width, 
   int center 
) 
  
Public Overridable Sub SetWindowLevel( _ 
   ByVal width As Integer, _ 
   ByVal center As Integer _ 
)  
            public: 
virtual void SetWindowLevel(  
   int width, 
   int center 
)  

Parameters

width
A System.Int32 value that represents the new window level width value.

center
A System.Int32 value that represents the new window level center value.

Remarks
  • If the cell has multiple frames, the width and center values will be applied to all of them.
  • To change the window level using the mouse button, use the AddAction method to add the action to the Medical Viewer Cell. Then use the SetAction method to associate the window level action with a mouse button.

Example

For an example, refer to MedicalViewerMultiCell.SetOffset

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly