PeachDrawing.Core

PeachDrawing.Core.Rect

Rect.Inflate Method

Overloads  
Inflate(double, double) Inflates this Rect structure by the specified amount.
Inflate(Rect, double, double) Creates and returns an inflated copy of the specified Rect structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
Inflate(Size) Inflates this Rect by the specified amount.

Rect.Inflate(double, double) Method

Inflates this Rect structure by the specified amount.

public void Inflate(double x, double y);

Parameters

x System.Double

The amount to inflate this Rect structure horizontally.

y System.Double

The amount to inflate this Rect structure vertically.

Rect.Inflate(Rect, double, double) Method

Creates and returns an inflated copy of the specified Rect structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.

public static PeachDrawing.Core.Rect Inflate(PeachDrawing.Core.Rect rect, double x, double y);

Parameters

rect Rect

The Rect to be copied. This rectangle is not modified.

x System.Double

The amount to inflate the copy of the rectangle horizontally.

y System.Double

The amount to inflate the copy of the rectangle vertically.

Returns

Rect
The inflated Rect.

Rect.Inflate(Size) Method

Inflates this Rect by the specified amount.

public void Inflate(PeachDrawing.Core.Size size);

Parameters

size Size

The amount to inflate this rectangle.