←Select platform

GetOffset Method

Summary

Gets the current coordinates of the image.

Syntax

C#
VB
C++
public Point2D GetOffset() 
  
Public Function GetOffset() As Leadtools.Medicalviewer.Point2D 
             
            public: 
Leadtools.Medicalviewer.Point2D GetOffset();  
             

Return Value

Point2D object which represents the current coordinates of the image.

Remarks
  • The points are relative to the center of the cell and the center of the image. This means that it will return {0, 0} if the image position is centered on the screen.
  • If the cell has multiple frames, the retrieved offset value will be the offset value of the selected sub-cell.
  • To change the offset using the mouse button, use the AddAction method to add the action to the Medical Viewer Cell. Then use the SetAction method to associate the offset action with a mouse button.
Example

For an example, refer to MedicalViewerMultiCell.SetOffset

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly