MedicalViewerMagnifyGlass Class

Summary
Represents the magnifying glass.
Syntax
C#
VB
C++
publicclassMedicalViewerMagnifyGlass :MedicalViewerBaseAction
PublicClassMedicalViewerMagnifyGlassInheritsMedicalViewerBaseAction
publicref classMedicalViewerMagnifyGlass :publicMedicalViewerBaseAction
Remarks

To set the properties call theMedicalViewerBaseCell.SetActionPropertiesmethod. To retrieve the properties call theMedicalViewerBaseCell.GetActionPropertiesmethod.

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#
VB
usingLeadtools;usingLeadtools.Codecs;usingLeadtools.MedicalViewer;publicvoidMedicalViewerMagnifyGlassExample(){MedicalViewerForm myForm = GetMedicalControl();MedicalViewer medicalViewer = myForm.Viewer;MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]);MedicalViewerMagnifyGlass magnifyGlass =newMedicalViewerMagnifyGlass();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();}
ImportsLeadtoolsImportsLeadtools.CodecsImportsLeadtools.MedicalViewerPublicSubMedicalViewerMagnifyGlassExample()DimmyFormAsMedicalViewerForm = GetMedicalControl()DimmedicalViewerAsMedicalViewer = myForm.ViewerDimcellAsMedicalViewerMultiCell =CType(medicalViewer.Cells(0), MedicalViewerMultiCell)DimmagnifyGlassAsMedicalViewerMagnifyGlass =NewMedicalViewerMagnifyGlass()magnifyGlass。Border3D =TruemagnifyGlass。Elliptical =FalsemagnifyGlass。Height = 200magnifyGlass。Width = 200magnifyGlass。Zoom = 400magnifyGlass。Crosshair = MedicalViewerCrosshairStyle.InvertmagnifyGlass。BorderSize = 3magnifyGlass。PenColor = Color.FromArgb(255, 0, 0)cell.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass)myForm.ShowDialog()EndSub
Requirements

Target Platforms

Leadtools.MedicalViewer Assembly
188金宝搏的网址客服|Support|Contact Us|Intellectual Property Notices
© 1991-2021LEAD Technologies, Inc.All Rights Reserved.