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


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

    Parameters

    center
    width
    height
    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