Nevron .NET Vision
Nevron.GraphicsCore Namespace / NRectangleF Structure / ResizeRectangle Method
rectangle to resize
compass direction of the handle, which is resized
x handle change
y handle change
indicates whether the change of the aspect ratio is allowed


In This Topic
    ResizeRectangle Method (NRectangleF)
    In This Topic
    Computes a new rect for an expected resize of a rectangle in the specified compass direction
    Syntax
    'Declaration
     
    
    Public Shared Function ResizeRectangle( _
       ByVal rect As NRectangleF, _
       ByVal direction As CompassDirection, _
       ByVal dx As System.Single, _
       ByVal dy As System.Single, _
       ByVal canChangeAspectRatio As System.Boolean _
    ) As NRectangleF
    'Usage
     
    
    Dim rect As NRectangleF
    Dim direction As CompassDirection
    Dim dx As System.Single
    Dim dy As System.Single
    Dim canChangeAspectRatio As System.Boolean
    Dim value As NRectangleF
     
    value = NRectangleF.ResizeRectangle(rect, direction, dx, dy, canChangeAspectRatio)
    public static NRectangleF ResizeRectangle( 
       NRectangleF rect,
       CompassDirection direction,
       System.float dx,
       System.float dy,
       System.bool canChangeAspectRatio
    )

    Parameters

    rect
    rectangle to resize
    direction
    compass direction of the handle, which is resized
    dx
    x handle change
    dy
    y handle change
    canChangeAspectRatio
    indicates whether the change of the aspect ratio is allowed

    Return Value

    resized rectangle
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also