Back to FabImage Library website
You are here: Start » Function Reference » Basic » Box » ResizeBox_Delta
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Changes the dimensions of a box by adding some values.
Syntax
C++
C#
void fil::ResizeBox_Delta ( const fil::Box& inBox, fil::Anchor2D::Type inAnchor, int inWidthDelta, int inHeightDelta, fil::Box& outBox )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inBox | const Box& | Input box | |
![]() |
inAnchor | Anchor2D::Type | TopLeft | Point of the box which position will not change |
![]() |
inWidthDelta | int | 0 | Value added to width of the box |
![]() |
inHeightDelta | int | 0 | Value added to height of the box |
![]() |
outBox | Box& | Resized box |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inBox and outBox
Read more about In-place Computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Negative box dimensions in ResizeBox_Delta. |