Path.Rectangle Method (Single, Single, Single, Single)

Creates a new Path shaped as a rectangle defined by a pair of coordinates, a width, and a height.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public static Path Rectangle(
	float x,
	float y,
	float width,
	float height
)

Parameters

x

Type: System.Single

The x-coordinate of the upper-left corner of the rectangle.
y

Type: System.Single

The y-coordinate of the upper-left corner of the rectangle.
width

Type: System.Single

The width of the rectangle.
height

Type: System.Single

The height of the rectangle.

Return Value

A new Path instance.

See Also

Reference