Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NRectangleI Structure / FromCenterAndSize Method


In This Topic
    FromCenterAndSize Method (NRectangleI)
    In This Topic
    Gets a rectangle from center and dimensions
    Syntax
    'Declaration
     
    
    Public Shared Function FromCenterAndSize( _
       ByVal center As NPointI, _
       ByVal width As System.Integer, _
       ByVal height As System.Integer _
    ) As NRectangleI
    'Usage
     
    
    Dim center As NPointI
    Dim width As System.Integer
    Dim height As System.Integer
    Dim value As NRectangleI
     
    value = NRectangleI.FromCenterAndSize(center, width, height)
    public static NRectangleI FromCenterAndSize( 
       NPointI center,
       System.int width,
       System.int 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