The Image Property is available as an add-on to the LEADTOOLS Medical Imaging toolkits.
Gets or sets the image that will be displayed when the cell is added to the
MedicalViewerCell.
Syntax
Example
Apply some image processing commands on the image of the first cell.
Visual Basic | Copy 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((CType(medicalViewer.Cells(0), MedicalViewerMultiCell)).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(((MedicalViewerMultiCell)(medicalViewer.Cells[0])).Image);
medicalViewer.Cells[0].Invalidate();
myForm.ShowDialog();
} |
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also