Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Spatial Transforms » ResizeRectangle

ResizeRectangle


Changes dimensions of a rectangle.

Syntax

C++
C#
 
void avl::ResizeRectangle
(
	const avl::Rectangle2D& inRectangle,
	avl::Anchor2D::Type inAnchor,
	atl::Optional<float> inNewWidth,
	atl::Optional<float> inNewHeight,
	avl::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.