You are here: Start » AVL.NET » Invoke.ResizeBox_Relative
Resizes a box to relatively defined dimensions.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void ResizeBox_Relative ( Avl.Box inBox, Avl.Anchor2D inAnchor, float inHorizontalScale, float inVerticalScale, out Avl.Box outBox )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inBox | Avl.Box | Input box. | ||
![]() | inAnchor | Avl.Anchor2D | TopLeft | Point of the box which position will not change. Default value: TopLeft. | |
![]() | inHorizontalScale | float | <0.0f, INF> | 1.0f | Scale factor of the horizontal resize. Default value: 1.0f. |
![]() | inVerticalScale | float | <0.0f, INF> | 1.0f | Scale factor of the vertical resize. Default value: 1.0f. |
![]() | outBox | Avl.Box | Resized box. |