LEADTOOLS Medical (Leadtools.MedicalViewer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
MedicalViewerMagnifyGlass Class
See Also  Members  
Leadtools.MedicalViewer Namespace : MedicalViewerMagnifyGlass Class



The MedicalViewerMagnifyGlass Class is available as an add-on to the LEADTOOLS Medical Imaging toolkits.

Represents the class that contains the magnifying glass properties.

Object Model

MedicalViewerMagnifyGlass Class

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

This example changes the appearance of the magnify glass

Visual BasicCopy Code
Public Sub MedicalViewerMagnifyGlassExample()
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim medicalViewer As MedicalViewer = myForm.Viewer
   Dim cell As MedicalViewerMultiCell = CType(medicalViewer.Cells(0), MedicalViewerMultiCell)

   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)

   cell.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass)
   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerMagnifyGlassExample()
{
   MedicalViewerForm myForm = GetMedicalControl();
   MedicalViewer medicalViewer = myForm.Viewer;
   MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]);

   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);

   cell.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass);
   myForm.ShowDialog();
}

Remarks

To set the properties call the MedicalViewerBaseCell.SetActionProperties. To retrieves the properties call the MedicalViewerBaseCell.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 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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