Back to Aurora Vision Library Lite website

You are here: Start » Basic » Box » ResizeBox_Delta

ResizeBox_Delta


Header: AVL.h
Namespace: avl

Changes the dimensions of a box by adding some values.

Syntax

void avl::ResizeBox_Delta
(
	const avl::Box& inBox,
	avl::Anchor2D::Type inAnchor,
	int inWidthDelta,
	int inHeightDelta,
	avl::Box& outBox
)

Parameters

Name Type 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 inWidthDelta int 0 Value added to width of the box
Input value inHeightDelta int 0 Value added to height of the box
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.

Errors

List of possible exceptions:

Error type Description
DomainError Negative box dimensions in ResizeBox_Delta.