You are here: Start » AVL.NET » AVL.ResizeBox_Relative(AvlNet.Box, AvlNet.Anchor2D, float, float, AvlNet.Box)

AVL.ResizeBox_Relative(AvlNet.Box, AvlNet.Anchor2D, float, float, AvlNet.Box)

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

inBox
Type: AvlNet.Box
Input box
inAnchor
Type: AvlNet.Anchor2D
Point of the box which position will not change
inHorizontalScale
Type: System.Single
Scale factor of the horizontal resize
inVerticalScale
Type: System.Single
Scale factor of the vertical resize
outBox
Type: AvlNet.Box
Resized box

Description

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

See also