Back to Adaptive Vision Library website
You are here: Start » Function Reference » Box » ResizeBox
Changes the dimensions of a box.
Header: | AVL.h |
---|
Syntax
C++
C#
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).
See Also
- ResizeBox_Relative – Resizes a box to relatively defined dimensions.
- ResizeRegion – Enlarges or shrinks a region to new dimensions.