SetOffset(Point2D) Method

Summary

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

Syntax
C#
VB
C++
public void SetOffset( 
   Point2D point 
) 
  
Public Overloads Sub SetOffset( _ 
   ByVal point As Point2D _ 
)  
            public: 
void SetOffset(  
   Point2D point 
)  

Parameters

point
A Point2D object 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 the frames.
  • 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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly