Back to Adaptive Vision Library Lite website
You are here: Start » Box » ResizeBox
![](../../img/icon/Box.png)
ResizeBox
Changes the dimensions of a box.
Syntax
void avl::ResizeBox ( const avl::Box& inBox, avl::Anchor2D::Type inAnchor, atl::Optional<int> inNewWidth, atl::Optional<int> inNewHeight, 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 | |
![]() |
inNewWidth | Optional<int> | 0 - ![]() |
NIL | Target width of the box |
![]() |
inNewHeight | Optional<int> | 0 - ![]() |
NIL | Target height of the box |
![]() |
outBox | Box& | Resized box |
Description
The operation changes dimensions of input Box to (inNewWidth, inNewHeight).