Click or drag to resize

GraphicsPathGetRoundRect Method (RectangleF, Single, Single, Single, Single)

Creates a rounded rectangle using the specified corner radius

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static IGraphicsPath GetRoundRect(
	RectangleF rectangle,
	float nwRadius,
	float neRadius,
	float seRadius,
	float swRadius
)

Parameters

rectangle
Type: Eto.DrawingRectangleF
Rectangle to round
nwRadius
Type: SystemSingle
Radius of the north east corner
neRadius
Type: SystemSingle
Radius of the north west corner
seRadius
Type: SystemSingle
Radius of the south east corner
swRadius
Type: SystemSingle
Radius of the south west corner

Return Value

Type: IGraphicsPath
GraphicsPath with the lines of the rounded rectangle ready to be painted
See Also