Initializes a new instance of the
MedicalViewerAlpha class with specified width, height, zoom factor, border color, shape, 3d border value, and crosshair.
Syntax
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 Basic | Copy 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