public static Inflate ( Rectangle rect, int x, int y ) : Rectangle | ||
rect | Rectangle | |
x | int | |
y | int | |
return | Rectangle |
Rectangle rect = new Rectangle(10, 20, 30, 40); rect.Inflate(5, 5);
Rectangle rect = new Rectangle(10, 20, 30, 40); rect.Inflate(-5, -10);In this example, the original rectangle is deflated by 5 in the horizontal direction and 10 in the vertical direction, resulting in a new rectangle with dimensions 20 x 20. This method is provided by the System.Drawing assembly, which is part of the .NET framework.
Creates a
public static Inflate ( Rectangle rect, int x, int y ) : Rectangle | ||
rect | Rectangle | |
x | int | |
y | int | |
return | Rectangle |