You are here: Start » AVL.NET » AVL.ResizeBox_Relative
Resizes a box to relatively defined dimensions.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void ResizeBox_Relative ( AvlNet.Box inBox, AvlNet.Anchor2D inAnchor, float inHorizontalScale, float inVerticalScale, out AvlNet.Box outBox )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inBox | AvlNet.Box | Input box. | |||
inAnchor | AvlNet.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 | AvlNet.Box | Resized box. |
Description
The operation resizes an input box multiplying its width by inHorizontalScale and height by inVerticalScale.