VintaSoft Imaging .NET SDK 14.1: Documentation for .NET developer
Vintasoft.Imaging.Annotation.Dicom.Wpf.UI Namespace / WpfDicomRulerAnnotationView Class / GetLength(Point,Point,Resolution,UnitOfMeasure) Method
Syntax Requirements SeeAlso
In This Topic
    GetLength(Point,Point,Resolution,UnitOfMeasure) Method (WpfDicomRulerAnnotationView)
    In This Topic
    Returns the length in the pixels.
    Syntax
    'Declaration
    
    Protected Overridable Function GetLength( _
    ByVal firstPoint
    The first point in pixels.
    As System.Windows.Point, _
    ByVal secondPoint
    The second point in pixels.
    As System.Windows.Point, _
    ByVal resolution
    The resolution.
    As Vintasoft.Imaging.Resolution, _
    ByVal unitOfMeasure
    Unit of measure of result.
    As Vintasoft.Imaging.UnitOfMeasure _
    ) As Double
    protected virtual double GetLength(
    System.Windows.Point firstPoint,
    System.Windows.Point secondPoint,
    Vintasoft.Imaging.Resolution resolution,
    Vintasoft.Imaging.UnitOfMeasure unitOfMeasure
    )
    protected: virtual double GetLength(
    System.Windows.Point firstPoint,
    System.Windows.Point secondPoint,
    Vintasoft.Imaging.Resolution resolution,
    Vintasoft.Imaging.UnitOfMeasure unitOfMeasure
    )
    protected:
    virtual double GetLength(
    System.Windows.Point firstPoint,
    System.Windows.Point secondPoint,
    Vintasoft.Imaging.Resolution resolution,
    Vintasoft.Imaging.UnitOfMeasure unitOfMeasure
    )

    Parameters

    firstPoint
    The first point in pixels.
    secondPoint
    The second point in pixels.
    resolution
    The resolution.
    unitOfMeasure
    Unit of measure of result.

    Return Value

    The length in pixels.
    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