GetOffset Method

Summary

Gets the current coordinates of the image.

Syntax
C#
VB
C++
public Point2D GetOffset( 
   int subCellIndex 
) 
  
Public Overloads Function GetOffset( _ 
   ByVal subCellIndex As Integer _ 
) As Point2D 
            public: 
Point2D GetOffset(  
   int subCellIndex 
)  

Parameters

subCellIndex
Zero-based index of sub-cell that contains the image whose position will be retrieved.

Return Value

A Point2D object representing 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 is positioned at the center of the screen.
  • To retrieve the offset value of the selected sub-cell, either pass its sub-cell index or pass -2.
  • 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 SetOffset(Int32,Double,Double)

Requirements

Target Platforms

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

Leadtools.MedicalViewer Assembly