LEADTOOLS Medical (Leadtools.MedicalViewer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
SetImagePosition Method
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewerCell Class : SetImagePosition Method



subCellIndex
A zero-based index of the sub-cell.
imagePosition
The image position to be set.
update
true to update the cell data based on the newly inserted image position.

The SetImagePosition Method is available as an add-on to the LEADTOOLS Medical Imaging toolkits.

subCellIndex
A zero-based index of the sub-cell.
imagePosition
The image position to be set.
update
true to update the cell data based on the newly inserted image position.
Set the image position of the the cell frames based on the corresponding index.

Syntax

Visual Basic (Declaration) 
Public Sub SetImagePosition( _
   ByVal subCellIndex As Integer, _
   ByVal imagePosition As Point3D, _
   ByVal update As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCell
Dim subCellIndex As Integer
Dim imagePosition As Point3D
Dim update As Boolean
 
instance.SetImagePosition(subCellIndex, imagePosition, update)
C# 
public void SetImagePosition( 
   int subCellIndex,
   Point3D imagePosition,
   bool update
)
C++/CLI 
public:
void SetImagePosition( 
   int subCellIndex,
   Point3D imagePosition,
   bool update
) 

Parameters

subCellIndex
A zero-based index of the sub-cell.
imagePosition
The image position to be set.
update
true to update the cell data based on the newly inserted image position.

Example

for an example, refer to MedicalViewerReferenceLineProperties

Remarks

  • The image position can be retrieved from the DicomDataSet.
  • for efficiency purposes, it's recommended not to set the 3rd parameter update to true in case of multi frame cell until the user sets the last image position, otherwise, the program will keep recalculating the internal data each time the user sets a the image position for each frame.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.MedicalViewer requires a Medical Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features