Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NRectangle Structure / FromTwoPoints Method / FromTwoPoints(NPoint,NPoint) Method


In This Topic
    FromTwoPoints(NPoint,NPoint) Method
    In This Topic
    Gets a normalized rectangle from two points
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromTwoPoints( _
       ByVal pt1 As NPoint, _
       ByVal pt2 As NPoint _
    ) As NRectangle
    'Usage
     
    
    Dim pt1 As NPoint
    Dim pt2 As NPoint
    Dim value As NRectangle
     
    value = NRectangle.FromTwoPoints(pt1, pt2)
    public static NRectangle FromTwoPoints( 
       NPoint pt1,
       NPoint pt2
    )

    Parameters

    pt1
    pt2
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also