MedicalViewerMagnifyGlass Class

Summary
Represents the magnifying glass.
Syntax
C#
C++/CLI
public class MedicalViewerMagnifyGlass : MedicalViewerBaseAction 
            public ref class MedicalViewerMagnifyGlass : public MedicalViewerBaseAction  
Remarks

To set the properties call the MedicalViewerBaseCell.SetActionProperties method. To retrieve the properties call the MedicalViewerBaseCell.GetActionProperties method.

The mouse controls the actions as follows:

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

This example changes the appearance of the magnify glass

C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
 
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(); 
} 
Requirements

Target Platforms

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

Leadtools.MedicalViewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.