RectangleInflate Method (Rectangle, Int32, Int32) |
Inflates all dimensions of this rectangle by the specified width and height
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Rectangle Inflate(
Rectangle rectangle,
int width,
int height
)
Public Shared Function Inflate (
rectangle As Rectangle,
width As Integer,
height As Integer
) As Rectangle
static member Inflate :
rectangle : Rectangle *
width : int *
height : int -> Rectangle
Parameters
- rectangle
- Type: Eto.DrawingRectangle
Rectangle to inflate - width
- Type: SystemInt32
Width to inflate the left and right of the rectangle by - height
- Type: SystemInt32
Height to inflate the top and bottom of the rectangle by
Return Value
Type:
RectangleA new rectangle inflated by the specified width and height
Remarks
This inflates the rectangle in all dimensions by the specified width and height.
The resulting rectangle will be increased in width and height twice that of the specified size, and the center
will be in the same location.
A negative width and/or height can be passed in to deflate the rectangle.
See Also