Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Spatial Transforms » ResizeRegion_Relative

ResizeRegion_Relative
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Resizes region relatively along each axis.
Syntax
C++
C#
void fil::ResizeRegion_Relative ( const fil::Region& inRegion, float inHorizontalScale, float inVerticalScale, fil::Region& outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | ||
![]() |
inHorizontalScale | float | 0.0 - ![]() |
1.0f | |
![]() |
inVerticalScale | float | 0.0 - ![]() |
1.0f | |
![]() |
outRegion | Region& | Output region |
Examples
![]() |
![]() |
ResizeRegion_Relative performed on the sample region with inHorizontalScale and inVerticalScale both set to 0,5.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Output region too big in ResizeRegion_Relative. |
See Also
- ResizeRegion – Enlarges or shrinks a region to new dimensions.
- DownsampleRegion – Shrinks a region by the factor of two along each axis.
- ShrinkRegionNTimes – Shrinks a region by a natural factor along each axis.
- EnlargeRegionNTimes – Enlarges a region by a natural factor.
- ResizeImage – Enlarges or shrinks an image to new dimensions.