Click or drag to resize

IGraphicsPathAddRectangle Method

Adds a rectangle to the path

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
void AddRectangle(
	float x,
	float y,
	float width,
	float height
)

Parameters

x
Type: SystemSingle
X co-ordinate of the top left of the rectangle
y
Type: SystemSingle
Y co-ordinate of the top left of the rectangle
width
Type: SystemSingle
Width of the rectangle
height
Type: SystemSingle
Height of the rectangle
Remarks
Rectangles are separate figures and will not connect to the current or next figure in the path. The starting point of the path will no longer be set after this call.
See Also