Click or drag to resize

GraphicsPath.AddRectangle Method

Adds a rectangle to the path

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

Parameters

x
Type: System.Single
X co-ordinate of the top left of the rectangle
y
Type: System.Single
Y co-ordinate of the top left of the rectangle
width
Type: System.Single
Width of the rectangle
height
Type: System.Single
Height of the rectangle

Implements

IGraphicsPath.AddRectangle(Single, Single, Single, Single)
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