Leadtools.MedicalViewer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Image Property
See Also  Example
Leadtools.MedicalViewer Namespace > MedicalViewerCell Class : Image Property




Gets or sets the image that will be displayed when the cell is added to the MedicalViewer.

Syntax

Visual Basic (Declaration) 
Public Property Image As RasterImage
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCell
Dim value As RasterImage
 
instance.Image = value
 
value = instance.Image
C# 
public RasterImage Image {get; set;}
Managed Extensions for C++ 
public: __property RasterImage get_Image();
public: __property void set_Image( 
   RasterImage value
);
C++/CLI 
public:
property RasterImage Image {
   RasterImage get();
   void set (RasterImage value);
}

Return Value

A RasterImage object that represents the image that will be displayed when the cell is added to the MedicalViewer.

Example

Apply some image processing commmands on the image of the first cell.

Visual BasicCopy Code
Public Sub MedicalViewerImageProcessingExample()
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim MedicalViewer As MedicalViewer = myForm.Viewer
   Dim multiScale As MultiscaleEnhancementCommand = New MultiscaleEnhancementCommand(1500, MultiscaleEnhancementCommandType.Bicubic, MultiscaleEnhancementCommandFlags.EdgeEnhancement)
   multiScale.Run(MedicalViewer.Cells(0).Image)
   MedicalViewer.Cells(0).Invalidate()

   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerImageProcessingExample() 

   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   MultiscaleEnhancementCommand multiScale = new MultiscaleEnhancementCommand(1500, MultiscaleEnhancementCommandType.Bicubic, MultiscaleEnhancementCommandFlags.EdgeEnhancement); 
   multiScale.Run(medicalViewer.Cells[0].Image); 
   medicalViewer.Cells[0].Invalidate(); 
 
   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

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