Table of Contents

Method Inflate

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

Inflate(double)

Returns a new rectangle expanded equally on all sides.

public Rectangle Inflate(double uniform)

Parameters

uniform double

The amount to add to each side (left, top, right, bottom).

Returns

Rectangle

A new Rectangle that is larger by uniform on each side.

Inflate(double, double)

Returns a new rectangle expanded by the specified amounts on each axis.

public Rectangle Inflate(double dx, double dy)

Parameters

dx double

The horizontal amount to add on each side (left and right).

dy double

The vertical amount to add on each side (top and bottom).

Returns

Rectangle

A new Rectangle that is larger by dx horizontally and dy vertically on each side.