Back to Aurora Vision Library Lite website

You are here: Start » Basic » Box » ResizeBox_Relative

ResizeBox_Relative


Header: AVL.h
Namespace: avl

Resizes a box to relatively defined dimensions.

Syntax

void avl::ResizeBox_Relative
(
	const avl::Box& inBox,
	avl::Anchor2D::Type inAnchor,
	float inHorizontalScale,
	float inVerticalScale,
	avl::Box& outBox
)

Parameters

Name Type Range Default Description
Input value inBox const Box& Input box
Input value inAnchor Anchor2D::Type TopLeft Point of the box which position will not change
Input value inHorizontalScale float 0.0 - 1.0f Scale factor of the horizontal resize
Input value inVerticalScale float 0.0 - 1.0f Scale factor of the vertical resize
Output value outBox Box& Resized box

In-place Processing

This function supports in-place data processing - you can pass the same reference to inBox and outBox

Read more about In-place Computation.

Description

The operation resizes an input box multiplying its width by inHorizontalScale and height by inVerticalScale.

See Also

  • ResizeBox – Changes the dimensions of a box.