Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » ResizeRectangle_Delta
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Changes dimensions of a rectangle by adding some values.
Syntax
C++
C#
void fil::ResizeRectangle_Delta ( const fil::Rectangle2D& inRectangle, fil::Anchor2D::Type inAnchor, float inWidthDelta, float inHeightDelta, fil::Rectangle2D& outRectangle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
inAnchor | Anchor2D::Type | TopLeft | |
![]() |
inWidthDelta | float | 0.0f | Value added to width of the rectangle |
![]() |
inHeightDelta | float | 0.0f | Value added to height of the rectangle |
![]() |
outRectangle | Rectangle2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inRectangle and outRectangle
Read more about In-place Computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Negative rectangle dimensions in ResizeRectangle_Delta. |