Nevron .NET Vision
Nevron.Diagram.WinForm Namespace / NBoundsHandle Class / ComputeNewScale Method
x change
y change
original bounds
whether the bounds aspect ratio can be broken
result X scale
result Y scale


In This Topic
    ComputeNewScale Method
    In This Topic
    Computes the scales and pin for scaling the original bounds to accomodate the X and Y change
    Syntax
    'Declaration
     
    
    Public Overridable Sub ComputeNewScale( _
       ByVal xChange As System.Single, _
       ByVal yChange As System.Single, _
       ByVal originalBounds As NRectangleF, _
       ByVal canChangeAspectRatio As System.Boolean, _
       ByRef scaleX As System.Single, _
       ByRef scaleY As System.Single _
    ) 
    'Usage
     
    
    Dim instance As NBoundsHandle
    Dim xChange As System.Single
    Dim yChange As System.Single
    Dim originalBounds As NRectangleF
    Dim canChangeAspectRatio As System.Boolean
    Dim scaleX As System.Single
    Dim scaleY As System.Single
     
    instance.ComputeNewScale(xChange, yChange, originalBounds, canChangeAspectRatio, scaleX, scaleY)
    public virtual void ComputeNewScale( 
       System.float xChange,
       System.float yChange,
       NRectangleF originalBounds,
       System.bool canChangeAspectRatio,
       out System.float scaleX,
       out System.float scaleY
    )

    Parameters

    xChange
    x change
    yChange
    y change
    originalBounds
    original bounds
    canChangeAspectRatio
    whether the bounds aspect ratio can be broken
    scaleX
    result X scale
    scaleY
    result Y scale
    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