Represents the base class used for the basic actions.
Syntax
Example
Change the window level properties and apply it on the first image
Visual Basic | Copy Code |
---|
<Test> _
Public Sub MedicalViewerWindowLevelExample1()
Dim myForm As MedicalViewerForm = GetMedicalControl()
Dim medicalViewer As MedicalViewer = myForm.Viewer
Dim windowLevel As MedicalViewerWindowLevel = New MedicalViewerWindowLevel()
windowLevel.LookupTableType = MedicalViewerLookupTableType.Exponential
windowLevel.StartColor = Color.FromArgb(0, 0, 0)
windowLevel.EndColor = Color.FromArgb(255, 255, 0)
windowLevel.Sensitivity = 500
windowLevel.Width = 100
windowLevel.Center = 200
windowLevel.ActionCursor = System.Windows.Forms.Cursors.VSplit
windowLevel.CircularMouseMove = False
medicalViewer.SetActionProperties(MedicalViewerActionType.WindowLevel, windowLevel, 0, 0)
myForm.ShowDialog()
End Sub |
C# | Copy Code |
---|
public void MedicalViewerWindowLevelExample1() { MedicalViewerForm myForm = GetMedicalControl(); MedicalViewer medicalViewer = myForm.Viewer; MedicalViewerWindowLevel windowLevel = new MedicalViewerWindowLevel(); windowLevel.LookupTableType = MedicalViewerLookupTableType.Exponential; windowLevel.StartColor = Color.FromArgb(0, 0, 0); windowLevel.EndColor = Color.FromArgb(255, 255, 0); windowLevel.Sensitivity = 500; windowLevel.Width = 100; windowLevel.Center = 200; windowLevel.ActionCursor = System.Windows.Forms.Cursors.VSplit; windowLevel.CircularMouseMove = false; medicalViewer.SetActionProperties(MedicalViewerActionType.WindowLevel, windowLevel, 0, 0); myForm.ShowDialog(); } |
Remarks
Inheritance Hierarchy
Requirements
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
See Also