LEADTOOLS Medical (Leadtools.MedicalViewer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
CalibrateRuler(Double,MedicalViewerMeasurementUnit,Int32,MedicalViewerCalibrationAxis) Method
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewerMultiCell Class > CalibrateRuler Method : CalibrateRuler(Double,MedicalViewerMeasurementUnit,Int32,MedicalViewerCalibrationAxis) Method



distance
The new length of the annotation ruler.
measurementUnit
The unit of measure.
subCellIndex
The zero-based index of the sub-cell being calibrated. Pass -1 to calibrate all the sub-cells; pass -2 to calibrate the active sub-cell.
axis
The calibration axis.

The CalibrateRuler(Double,MedicalViewerMeasurementUnit,Int32,MedicalViewerCalibrationAxis) Method is available as an add-on to the LEADTOOLS Medical Imaging toolkits.

distance
The new length of the annotation ruler.
measurementUnit
The unit of measure.
subCellIndex
The zero-based index of the sub-cell being calibrated. Pass -1 to calibrate all the sub-cells; pass -2 to calibrate the active sub-cell.
axis
The calibration axis.
Changes the length of the selected annotation ruler according to the new unit of measure.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub CalibrateRuler( _
   ByVal distance As Double, _
   ByVal measurementUnit As MedicalViewerMeasurementUnit, _
   ByVal subCellIndex As Integer, _
   ByVal axis As MedicalViewerCalibrationAxis _
) 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerMultiCell
Dim distance As Double
Dim measurementUnit As MedicalViewerMeasurementUnit
Dim subCellIndex As Integer
Dim axis As MedicalViewerCalibrationAxis
 
instance.CalibrateRuler(distance, measurementUnit, subCellIndex, axis)
C++/CLI 
public:
void CalibrateRuler( 
   double distance,
   MedicalViewerMeasurementUnit measurementUnit,
   int subCellIndex,
   MedicalViewerCalibrationAxis axis
) 

Parameters

distance
The new length of the annotation ruler.
measurementUnit
The unit of measure.
subCellIndex
The zero-based index of the sub-cell being calibrated. Pass -1 to calibrate all the sub-cells; pass -2 to calibrate the active sub-cell.
axis
The calibration axis.

Example

For an example, refer to MedicalViewerBaseCell.CalibrateRuler

Remarks

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