Initializes a new instance of the MedicalViewerMagnifyGlass class with specified width, height, zoom factor, border color, shape, 3D border value, and crosshair style.
public MedicalViewerMagnifyGlass(
int width,
int height,
int zoom,
Color penColor,
bool elliptical,
int borderSize,
bool border3d,
MedicalViewerCrosshairStyle crosshair
)
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 Leadtools.Medicalviewer.MedicalViewerCrosshairStyle _
)
public:
MedicalViewerMagnifyGlass(
int width,
int height,
int zoom,
Color penColor,
bool elliptical,
int borderSize,
bool border3d,
Leadtools.Medicalviewer.MedicalViewerCrosshairStyle crosshair
)
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 style of crosshair of the magnifying glass.
Change the appearance of the magnify glass
using Leadtools;
using Leadtools.Codecs;
using Leadtools.MedicalViewer;
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();
}
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.MedicalViewer
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
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.