Table of Contents

Method Inflated

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Inflated(Rectangle, Size)

Inflates given rectangle by the specified size.

public static Rectangle Inflated(this Rectangle rectangle, Size size)

Parameters

rectangle Rectangle

Given rectangle.

size Size

The amount to inflate this rectangle.

Returns

Rectangle

Rectangle object with new size.

Inflated(Rectangle, int)

Inflates given rectangle by the specified amount.

public static Rectangle Inflated(this Rectangle rectangle, int amount)

Parameters

rectangle Rectangle

Given rectangle.

amount int

The amount to inflate this rectangle in vertical and horizontal direction.

Returns

Rectangle

Rectangle object with new size.