Leadtools.MedicalViewer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
MedicalViewerCommonActions Class
See Also  Members   Example 
Leadtools.MedicalViewer Namespace : MedicalViewerCommonActions Class




Represents the base class used for the basic actions.

Syntax

Visual Basic (Declaration) 
Public Class MedicalViewerCommonActions 
   Inherits MedicalViewerBaseAction
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCommonActions
C# 
public class MedicalViewerCommonActions : MedicalViewerBaseAction 
Managed Extensions for C++ 
public __gc class MedicalViewerCommonActions : public MedicalViewerBaseAction 
C++/CLI 
public ref class MedicalViewerCommonActions : public MedicalViewerBaseAction 

Example

Change the window level properties and apply it on the first image

Visual BasicCopy 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

  • This class is a base class for the following actions:
    • WindowLevel
    • Scale
    • Offset
    • Stack
    • Alpha

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

Leadtools.MedicalViewer requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features