Click or drag to resize

RectangleFInflate Method (RectangleF, SizeF)

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 RectangleF Inflate(
	RectangleF rectangle,
	SizeF size
)

Parameters

rectangle
Type: Eto.DrawingRectangleF
Rectangle to inflate
size
Type: Eto.DrawingSizeF
Size to inflate the rectangle by

Return Value

Type: RectangleF
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