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
The amount to inflate this Rect structure horizontally.
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.
The amount to inflate the copy of the rectangle horizontally.
The amount to inflate the copy of the rectangle vertically.
Returns
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.