ImageViewer Invert

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
Minkuk
Posts: 2
Joined: Tue Jul 14, 2020 10:49 am

ImageViewer Invert

Post by Minkuk »

I had a problem with "ImageViewer.Image.Invert()".

"ImageViewer1.VisualTool = m_DicomAnnotationTool;'When using the source and "ImageViewer.Image.Invert ()", there is no reaction.

However, "imageViewer1.VisualTool = m_DicomAnnotationTool;'If you do Invert without using that code, it will work normally.

I'm curious for some reason.

---

DicomAnnotatedViewerTool m_DicomAnnotationTool
Alex
Site Admin
Posts: 2048
Joined: Thu Jul 10, 2008 2:21 pm

Re: ImageViewer Invert

Post by Alex »

Hello,

The DicomAnnotatedViewerTool class creates temporary image for fast DICOM image processing and visual tool does not use source image after initialization.

The DicomAnnotatedViewerTool is composite visual tool and it contains DicomViewerTool, DicomAnnotationTool and ImageMeasureTool.

For solving your task you need to do the following steps:
  • Get DicomViewerTool used in DicomAnnotatedViewerTool using DicomAnnotatedViewerTool.DicomViewerTool property.
  • Specify that DicomViewerTool must invert DICOM image in viewer using the DicomViewerTool.IsImageInverted property.
Best regards, Alexander
Minkuk
Posts: 2
Joined: Tue Jul 14, 2020 10:49 am

Re: ImageViewer Invert

Post by Minkuk »

Thank you for answering
'M_DicomAnnotationTool.DicomViewerTool.IsImageNegative != m_DicomAnnotationTool.DicomViewerTool.IsImageNegative; '
Inversion using the code worked fine.

But I also do Rotate here but there is no function that acts like Invert.

Is there a Rotate related function?
Alex
Site Admin
Posts: 2048
Joined: Thu Jul 10, 2008 2:21 pm

Re: ImageViewer Invert

Post by Alex »

Hello,
But I also do Rotate here but there is no function that acts like Invert.
Is there a Rotate related function?
Ability to rotate image in image viewer will be available in version 9.1.2, which will be available in August 2020.

Best regards, Alexander
Post Reply