The MedicalViewerMagnifyGlass Class is available as an add-on to the LEADTOOLS Medical Imaging toolkits.
Represents the class that contains the magnifying glass properties.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 |
This example changes the appearance of the magnify glass
Visual Basic | Copy 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(); } |
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.
System.Object
Leadtools.MedicalViewer.MedicalViewerBaseAction
Leadtools.MedicalViewer.MedicalViewerMagnifyGlass
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7