Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » ResizeRectangle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Changes dimensions of a rectangle.
Syntax
C++
C#
void fil::ResizeRectangle ( const fil::Rectangle2D& inRectangle, fil::Anchor2D::Type inAnchor, ftl::Optional<float> inNewWidth, ftl::Optional<float> inNewHeight, fil::Rectangle2D& outRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | |||
![]() |
inAnchor | Anchor2D::Type | TopLeft | ||
![]() |
inNewWidth | Optional<float> | 0.0 - ![]() |
NIL | |
![]() |
inNewHeight | Optional<float> | 0.0 - ![]() |
NIL | |
![]() |
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.
Examples
![]() |
![]() |
ResizeRectangle performed on the sample rectangle, inNewWidth = 177.0 and inNewHeight = 104.0.