Back to Adaptive Vision Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » ResizeRectangle
![](../../img/icon/ResizeRectangle.png)
ResizeRectangle
Changes dimensions of a rectangle.
Syntax
void avl::ResizeRectangle ( const avl::Rectangle2D& inRectangle, avl::Anchor2D::Type inAnchor, atl::Optional<float> inNewWidth, atl::Optional<float> inNewHeight, avl::Rectangle2D& outRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | |||
![]() |
inAnchor | Anchor2D::Type | TopLeft | ||
![]() |
inNewWidth | Optional<float> | 0.0 - ![]() |
NIL | |
![]() |
inNewHeight | Optional<float> | 0.0 - ![]() |
NIL | |
![]() |
outRectangle | Rectangle2D& |
Examples
![]() |
![]() |
ResizeRectangle performed on the sample rectangle, inNewWidth = 177.0 and inNewHeight = 104.0.