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:
MedicalViewerMagnifyGlass(
int width,
int height,
int zoom,
Color penColor,
bool elliptical,
int borderSize,
bool border3d,
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();
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document