Method Inflated
Inflated(Rectangle, Size)
Inflates given rectangle by the specified size.
public static Rectangle Inflated(this Rectangle rectangle, Size size)
Parameters
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
RectangleGiven rectangle.
amount
intThe amount to inflate this rectangle in vertical and horizontal direction.
Returns
- Rectangle
Rectangle object with new size.