Back to Adaptive Vision Library website

You are here: Start » Function Reference » Box » ResizeBox

ResizeBox


Changes the dimensions of a box.

Syntax

C++
C#
 
void avl::ResizeBox
(
	const avl::Box& inBox,
	avl::Anchor2D::Type inAnchor,
	atl::Optional<int> inNewWidth,
	atl::Optional<int> inNewHeight,
	avl::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
inNewWidth Optional<int> 0 - NIL Target width of the box
inNewHeight Optional<int> 0 - NIL Target height of the box
outBox Box& Resized box

Description

The operation changes dimensions of input Box to (inNewWidth, inNewHeight).

See Also