VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Annotation.Dicom.UI Namespace / DicomRulerAnnotationView Class / GetLength(PointF,PointF,Resolution,UnitOfMeasure) Method
Syntax Requirements SeeAlso
In This Topic
    GetLength(PointF,PointF,Resolution,UnitOfMeasure) Method (DicomRulerAnnotationView)
    In This Topic
    Returns the length in the specified unis of measure.
    Syntax
    'Declaration
    
    Protected Overridable Function GetLength( _
    ByVal firstPoint
    The first point.
    As System.Drawing.PointF, _
    ByVal secondPoint
    The second point.
    As System.Drawing.PointF, _
    ByVal resolution
    The image resolution.
    As Vintasoft.Imaging.Resolution, _
    ByVal unitOfMeasure
    The unit of measure of result.
    As Vintasoft.Imaging.UnitOfMeasure _
    ) As Single
    protected virtual float GetLength(
    System.Drawing.PointF firstPoint,
    System.Drawing.PointF secondPoint,
    Vintasoft.Imaging.Resolution resolution,
    Vintasoft.Imaging.UnitOfMeasure unitOfMeasure
    )
    protected: virtual float GetLength(
    System.Drawing.PointF firstPoint,
    System.Drawing.PointF secondPoint,
    Vintasoft.Imaging.Resolution resolution,
    Vintasoft.Imaging.UnitOfMeasure unitOfMeasure
    )
    protected:
    virtual float GetLength(
    System.Drawing.PointF firstPoint,
    System.Drawing.PointF secondPoint,
    Vintasoft.Imaging.Resolution resolution,
    Vintasoft.Imaging.UnitOfMeasure unitOfMeasure
    )

    Parameters

    firstPoint
    The first point.
    secondPoint
    The second point.
    resolution
    The image resolution.
    unitOfMeasure
    The unit of measure of result.

    Return Value

    The length in the specified unis of measure.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also