Click or drag to resize

RectangleInflate Method (Rectangle, Size)

Inflates all dimensions of the rectangle by the specified size

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Rectangle Inflate(
	Rectangle rectangle,
	Size size
)

Parameters

rectangle
Type: Eto.DrawingRectangle
Rectangle to inflate
size
Type: Eto.DrawingSize
Size to inflate the rectangle by

Return Value

Type: Rectangle
A new rectangle inflated by the specified width and height
Remarks
This inflates the rectangle in all dimensions by the width and height specified by size. 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