Back to FabImage Library Lite website

You are here: Start » Box » ResizeBox

ResizeBox


Changes the dimensions of a box.

Syntax

void fil::ResizeBox
(
	const fil::Box& inBox,
	fil::Anchor2D::Type inAnchor,
	ftl::Optional<int> inNewWidth,
	ftl::Optional<int> inNewHeight,
	fil::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