LEADTOOLS Medical (Leadtools.MedicalViewer assembly)

MedicalViewerMagnifyGlass Constructor(Int32,Int32,Int32,Color,Boolean,Int32,Boolean,MedicalViewerCrosshairStyle)

Show in webframe





The width of the magnifying glass.
The height of the magnifying glass.
The zoom factor of the magnifying glass.
The color of the magnifying glass border
true to show an elliptical magnifying glass, false to show a rectangular magnifying glass.
The border thickness of the magnifying glass .
true to show a 3d border, false to show a flat border.
The style of crosshair of the magnifying glass.
Initializes a new instance of the MedicalViewerMagnifyGlass class with specified width, height, zoom factor, border color, shape, 3d border value, and crosshair style.
Syntax
public MedicalViewerMagnifyGlass( 
   int width,
   int height,
   int zoom,
   Color penColor,
   bool elliptical,
   int borderSize,
   bool border3d,
   MedicalViewerCrosshairStyle crosshair
)
'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 _
)
'Usage
 
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 New MedicalViewerMagnifyGlass(width, height, zoom, penColor, elliptical, borderSize, border3d, crosshair)

            

            
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 style of crosshair of the magnifying glass.
Example
      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
      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
      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();
      }

      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();
      }

Requirements

Target Platforms

See Also

Reference

MedicalViewerMagnifyGlass Class
MedicalViewerMagnifyGlass Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.MedicalViewer requires a Medical Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features