You are here: Start » AVL.NET » AVL.ResizeRectangle_Relative Method

AVL.ResizeRectangle_Relative Method

Changes dimensions of a rectangle relatively.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ResizeRectangle_Relative(
	AvlNet.Rectangle2D inRectangle,
	AvlNet.Anchor2D inAnchor,
	float inWidthScale,
	float inHeightScale,
	out AvlNet.Rectangle2D outRectangle
)

Parameters

Name Type Range Default Description
inRectangleAvlNet.Rectangle2D
inAnchorAvlNet.Anchor2DTopLeftDefault value: TopLeft.
inWidthScalefloat<0.0f, INF>1.0fDefault value: 1.0f.
inHeightScalefloat<0.0f, INF>1.0fDefault value: 1.0f.
outRectangleAvlNet.Rectangle2D

Examples

ResizeRectangle_Relative performed on the sample rectangle, inWidthScale = 2.0 and inHeightScale = 0.5.

See also