Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.12.8
|
Leadtools.MedicalViewer Namespace > MedicalViewerCell Class : Image Property |
Apply some image processing commands on the image of the first cell.
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; [TestMethod] 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(); }