←Select platform

Image Property (MedicalViewerCell)

Summary

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

Syntax

C#
VB
C++
public Leadtools.RasterImage Image {get; set;}
Public Property Image As Leadtools.RasterImage
public: 
property Leadtools.RasterImage^ Image { 
   Leadtools.RasterImage^ get(); 
   void set (    Leadtools.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
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.MedicalViewer 
Imports Leadtools.ImageProcessing.Core 
 
<TestMethod()> _ 
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 
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(); 
} 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.MedicalViewer Assembly
Click or drag to resize