Image Property

Summary
Gets or sets the image that will be displayed when the cell is added to the MedicalViewerCell.
Syntax
C#
VB
C++
public RasterImage Image { get; set; } 
  
Public Property Image As RasterImage 
            public: 
property RasterImage^ Image { 
   RasterImage^ get(); 
   void set (    RasterImage^ ); 
} 

Property Value

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

Example

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

C#
VB
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
using Leadtools.ImageProcessing.Core; 
 
public void MedicalViewerImageProcessingExample() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   MultiscaleEnhancementCommand multiScale = new MultiscaleEnhancementCommand(1500, MultiscaleEnhancementCommandType.Bicubic, MultiscaleEnhancementCommandFlags.EdgeEnhancement); 
   multiScale.Run(((MedicalViewerMultiCell)(medicalViewer.Cells[0])).Image); 
   medicalViewer.Cells[0].Invalidate(); 
 
   myForm.ShowDialog(); 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.MedicalViewer 
Imports Leadtools.ImageProcessing.Core 
 
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((CType(medicalViewer.Cells(0), MedicalViewerMultiCell)).Image) 
   medicalViewer.Cells(0).Invalidate() 
 
   myForm.ShowDialog() 
End Sub 
Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.