VintaSoft Imaging .NET SDK and Plug-ins Discussions

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

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

ImageViewer Invert



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


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


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?


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


Page 1 from 1: 1