The MedicalViewerMagnifyGlass Constructor(Int32,Int32,Int32,Color,Boolean,Int32,Boolean,MedicalViewerCrosshairStyle) is available as an add-on to the LEADTOOLS Medical Imaging toolkits.
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 |
---|
Public Sub MedicalViewerMagnifyGlassConstructorExample()
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(200, 200, 400, Color.FromArgb(255, 0, 0), False, 3, True, MedicalViewerCrosshairStyle.Fine)
cell.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass)
myForm.ShowDialog()
End Sub |
C# | Copy Code |
---|
public void MedicalViewerMagnifyGlassConstructorExample()
{
MedicalViewerForm myForm = GetMedicalControl();
MedicalViewer medicalViewer = myForm.Viewer;
MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]);
MedicalViewerMagnifyGlass magnifyGlass = new MedicalViewerMagnifyGlass(200, 200, 400, Color.FromArgb(255, 0, 0), false, 3, true, MedicalViewerCrosshairStyle.Fine);
cell.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass);
myForm.ShowDialog();
} |
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also