Click or drag to resize

RectangleRound Method

Converts a floating point rectangle to an integral Rectangle by rounding the X, Y, Width, and Height.

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Rectangle Round(
	RectangleF rectangle
)

Parameters

rectangle
Type: Eto.DrawingRectangleF
Rectangle to round

Return Value

Type: Rectangle
A new instance of a Rectangle with rounded X, Y, Width, and Height values
See Also