Back to FabImage Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » ResizeRectangle

ResizeRectangle
Changes dimensions of a rectangle.
Syntax
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& |
Examples
![]() |
![]() |
ResizeRectangle performed on the sample rectangle, inNewWidth = 177.0 and inNewHeight = 104.0.