Table of Contents

Method Expand

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

Expand(double, double)

Returns a new rectangle expanded by the specified amounts in both directions.

public Rectangle Expand(double dx, double dy)

Parameters

dx double

The horizontal amount to expand on each side.

dy double

The vertical amount to expand on each side.

Returns

Rectangle

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

Expand(double, double, double, double)

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

public Rectangle Expand(double left, double top, double right, double bottom)

Parameters

left double

The horizontal amount to add on the left side (subtracted from Left).

top double

The vertical amount to add on the top side (subtracted from Top).

right double

The horizontal amount to add on the right side (added to Right).

bottom double

The vertical amount to add on the bottom side (added to Bottom).

Returns

Rectangle

A new Rectangle whose edges are adjusted independently by the specified amounts. Positive values expand the rectangle; negative values contract it.