You are here: Start » AVL.NET » AVS.ResizeBox_Relative Method

AVS.ResizeBox_Relative Method

Resizes a box to relatively defined dimensions.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ResizeBox_Relative
(
	AvlNet.Box inBox,
	AvlNet.Anchor2D inAnchor,
	float inHorizontalScale,
	float inVerticalScale,
	out AvlNet.Box outBox
)

Parameters

Name Type Range Default Description
inBoxAvlNet.BoxInput box.
inAnchorAvlNet.Anchor2DTopLeftPoint of the box which position will not change. Default value: TopLeft.
inHorizontalScalefloat<0.0f, INF>1.0fScale factor of the horizontal resize. Default value: 1.0f.
inVerticalScalefloat<0.0f, INF>1.0fScale factor of the vertical resize. Default value: 1.0f.
outBoxAvlNet.BoxResized box.

See also