←Select platform

SetOffset(double,double) Method

Summary

Translates the image position according to the provided X and Y values.

Syntax

C#
VB
C++
public void SetOffset( 
   double x, 
   double y 
) 
  
Public Overloads Sub SetOffset( _ 
   ByVal x As Double, _ 
   ByVal y As Double _ 
)  
             
            public: 
void SetOffset(  
   double x, 
   double y 
)  
             

Parameters

x
The x coordinates that represents the new position of the image.

y
The y coordinates that represents the new position of the image.

Remarks
  • The points are relative to the center of the cell and the center of the image. This means that if the X and Y values are set to {0, 0}, the image will be displayed at the center of the cell.
  • If the cell has multiple frames, the offset value will be applied to all of them.
  • 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.19
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly