Back to FabImage Library website
You are here: Start » Function Reference » Basic » Box » ResizeBox_Relative
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Resizes a box to relatively defined dimensions.
Syntax
C++
C#
void fil::ResizeBox_Relative ( const fil::Box& inBox, fil::Anchor2D::Type inAnchor, float inHorizontalScale, float inVerticalScale, fil::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 |
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.
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.