Graphics.DrawRectangle Method (Pen, Single, Single, Single, Single)

Draws a rectangle specified by a coordinate pair, a width, and a height.

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

Syntax

C#
public void DrawRectangle(
	Pen pen,
	float x,
	float y,
	float width,
	float height
)

Parameters

pen

Type: Aurigma.GraphicsMill.AdvancedDrawing.Pen

A Pen that determines the color, width, and style of the rectangle.
x

Type: System.Single

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

Type: System.Single

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

Type: System.Single

The width of the rectangle to draw.
height

Type: System.Single

The height of the rectangle to draw.

Remarks

To fill a rectangle, use FillRectangle(Brush, Single, Single, Single, Single) method.

See Also

Reference

Manual