←Select platform

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 Leadtools.Medicalviewer.Point2D 
             
            public: 
Leadtools.Medicalviewer.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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly