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


In This Topic
    FromCenterAndSize(NPoint,NSize) Method
    In This Topic
    Gets a rectangle from center and dimensions
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromCenterAndSize( _
       ByVal center As NPoint, _
       ByVal size As NSize _
    ) As NRectangle
    'Usage
     
    
    Dim center As NPoint
    Dim size As NSize
    Dim value As NRectangle
     
    value = NRectangle.FromCenterAndSize(center, size)
    public static NRectangle FromCenterAndSize( 
       NPoint center,
       NSize size
    )

    Parameters

    center
    size
    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