MedicalViewerOffset Class

Summary
Represents the class that contains the properties of the offset action.
Syntax
C#
C++/CLI
public class MedicalViewerOffset : MedicalViewerCommonActions 
            public ref class MedicalViewerOffset : public MedicalViewerCommonActions, System.IDisposable   
Remarks

To set the properties of the offset action, call the MedicalViewerBaseCell.SetActionProperties method. To retrieve the properties call the MedicalViewerBaseCell.GetActionProperties method.

The mouse controls the actions as follows:

  • Click and drag the mouse to start the effect. When the assigned mouse button is released the action ends.
  • Dragging the mouse to the left moves the image to the left.
  • Dragging the mouse to the right moves the image to the right.
  • Dragging the mouse up moves the image up.
  • Dragging the mouse down moves the image down.
Example

This example changes the offset of the image of the first cell

C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
 
public void MedicalViewerOffset1() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]); 
   MedicalViewerOffset offset = (MedicalViewerOffset)cell.GetActionProperties(MedicalViewerActionType.Offset, 0); 
   offset.X += 50; 
   offset.Y += 50; 
   cell.SetActionProperties(MedicalViewerActionType.Offset, offset, 0); 
   offset.Dispose(); 
 
   myForm.ShowDialog(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.