Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » ResizeRectangle_Delta
Changes dimensions of a rectangle by adding some values.
Syntax
C++
C#
void avl::ResizeRectangle_Delta ( const avl::Rectangle2D& inRectangle, avl::Anchor2D::Type inAnchor, atl::real inWidthDelta, atl::real inHeightDelta, avl::Rectangle2D& outRectangle )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
inAnchor | Anchor2D::Type | TopLeft | |
![]() |
inWidthDelta | real | 0.0f | Value added to width of the rectangle |
![]() |
inHeightDelta | real | 0.0f | Value added to height of the rectangle |
![]() |
outRectangle | Rectangle2D& |
Errors
| Error type | Description |
|---|---|
| DomainError | Negative rectangle dimensions in ResizeRectangle_Delta. |


