Leadtools.MedicalViewer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
MedicalViewerMagnifyGlass Constructor(Int32,Int32,Int32,Color,Boolean,Int32,Boolean,MedicalViewerCrosshairStyle)
See Also  Example
Leadtools.MedicalViewer Namespace > MedicalViewerMagnifyGlass Class > MedicalViewerMagnifyGlass Constructor : MedicalViewerMagnifyGlass Constructor(Int32,Int32,Int32,Color,Boolean,Int32,Boolean,MedicalViewerCrosshairStyle)




width
The width of the magnifying glass.
height
The height of the magnifying glass.
zoom
The zoom factor of the magnifying glass.
penColor
The color of the magnifying glass border
elliptical
true to show an elliptical magnifying glass, false to show a rectangular magnifying glass.
borderSize
The border thickness of the magnifying glass .
border3d
true to show a 3d border, false to show a flat border.
crosshair
The type of crosshair of the magnifying glass.
Initializes a new instance of the MedicalViewerAlpha class with specified width, height, zoom factor, border color, shape, 3d border value, and crosshair.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal zoom As Integer, _
   ByVal penColor As Color, _
   ByVal elliptical As Boolean, _
   ByVal borderSize As Integer, _
   ByVal border3d As Boolean, _
   ByVal crosshair As MedicalViewerCrosshairStyle _
)
Visual Basic (Usage)Copy Code
Dim width As Integer
Dim height As Integer
Dim zoom As Integer
Dim penColor As Color
Dim elliptical As Boolean
Dim borderSize As Integer
Dim border3d As Boolean
Dim crosshair As MedicalViewerCrosshairStyle
 
Dim instance As MedicalViewerMagnifyGlass(width, height, zoom, penColor, elliptical, borderSize, border3d, crosshair)
C# 
public MedicalViewerMagnifyGlass( 
   int width,
   int height,
   int zoom,
   Color penColor,
   bool elliptical,
   int borderSize,
   bool border3d,
   MedicalViewerCrosshairStyle crosshair
)
Managed Extensions for C++ 
public: MedicalViewerMagnifyGlass( 
   int width,
   int height,
   int zoom,
   Color penColor,
   bool elliptical,
   int borderSize,
   bool border3d,
   MedicalViewerCrosshairStyle crosshair
)
C++/CLI 
public:
MedicalViewerMagnifyGlass( 
   int width,
   int height,
   int zoom,
   Color penColor,
   bool elliptical,
   int borderSize,
   bool border3d,
   MedicalViewerCrosshairStyle crosshair
)

Parameters

width
The width of the magnifying glass.
height
The height of the magnifying glass.
zoom
The zoom factor of the magnifying glass.
penColor
The color of the magnifying glass border
elliptical
true to show an elliptical magnifying glass, false to show a rectangular magnifying glass.
borderSize
The border thickness of the magnifying glass .
border3d
true to show a 3d border, false to show a flat border.
crosshair
The type of crosshair of the magnifying glass.

Example

Change the appearance of the magnify glass

Visual BasicCopy Code
<Test> _
Public Sub MedicalViewerMagnifyGlassConstructorExample()
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim medicalViewer As MedicalViewer = myForm.Viewer
   Dim magnifyGlass As MedicalViewerMagnifyGlass = New MedicalViewerMagnifyGlass(200, 200, 400, Color.FromArgb(255, 0, 0), False, 3, True, MedicalViewerCrosshairStyle.Fine)
   medicalViewer.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass)
   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerMagnifyGlassConstructorExample() 

   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
 
   MedicalViewerMagnifyGlass magnifyGlass = new MedicalViewerMagnifyGlass(200, 200, 400, Color.FromArgb(255, 0, 0), false, 3, true, MedicalViewerCrosshairStyle.Fine); 
   medicalViewer.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass); 
   myForm.ShowDialog(); 
}

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