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



Represents the class that contains the magnifying glass properties.

Syntax

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

Example

Change the appearance of the magnify glass

Visual BasicCopy Code
<Test> _
Public Sub MedicalViewerMagnifyGlassExample()
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim medicalViewer As MedicalViewer = myForm.Viewer
   Dim magnifyGlass As MedicalViewerMagnifyGlass = New MedicalViewerMagnifyGlass()
   magnifyGlass.Border3D = True
   magnifyGlass.Elliptical = False
   magnifyGlass.Height = 200
   magnifyGlass.Width = 200
   magnifyGlass.Zoom = 400
   magnifyGlass.Crosshair = MedicalViewerCrosshairStyle.Invert
   magnifyGlass.BorderSize = 3
   magnifyGlass.PenColor = Color.FromArgb(255, 0, 0)

   medicalViewer.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass)
   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerMagnifyGlassExample() 

   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
 
   MedicalViewerMagnifyGlass magnifyGlass = new MedicalViewerMagnifyGlass(); 
   magnifyGlass.Border3D = true; 
   magnifyGlass.Elliptical = false; 
   magnifyGlass.Height = 200; 
   magnifyGlass.Width = 200; 
   magnifyGlass.Zoom = 400; 
   magnifyGlass.Crosshair = MedicalViewerCrosshairStyle.Invert; 
   magnifyGlass.BorderSize = 3; 
   magnifyGlass.PenColor = Color.FromArgb(255, 0, 0); 
 
   medicalViewer.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass); 
   myForm.ShowDialog(); 
}

Remarks

To set the properties call the SetActionProperties, and to retrieves the properties call the GetActionProperties method.

The mouse controls the actions as follows:

  • Click and hold the mouse to start the effect. The magnifying glass appears.
  • Dragging the mouse causes the magnifying glass to move with the cursor. When the assigned mouse button is released the action ends.

Inheritance Hierarchy

System.Object
   Leadtools.MedicalViewer.MedicalViewerBaseAction
      Leadtools.MedicalViewer.MedicalViewerMagnifyGlass

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 Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features