←Select platform

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 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
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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly