Back to Adaptive Vision Library Lite website
You are here: Start » Box » ResizeBox_Relative
![](../../img/icon/Box.png)
ResizeBox_Relative
Resizes a box to relatively defined dimensions.
Syntax
void avl::ResizeBox_Relative ( const avl::Box& inBox, avl::Anchor2D::Type inAnchor, float inHorizontalScale, float inVerticalScale, avl::Box& outBox )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inBox | const Box& | Input box | ||
![]() |
inAnchor | Anchor2D::Type | TopLeft | Point of the box which position will not change | |
![]() |
inHorizontalScale | float | 0.0 - ![]() |
1.0f | Scale factor of the horizontal resize |
![]() |
inVerticalScale | float | 0.0 - ![]() |
1.0f | Scale factor of the vertical resize |
![]() |
outBox | Box& | Resized box |
Description
The operation resizes an input box multiplying its width by inHorizontalScale and height by inVerticalScale.