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