Graphics.DrawRectangle Method (Pen, Rectangle)

Draws a rectangle specified by a Rectangle structure.

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

Syntax

C#
public void DrawRectangle(
	Pen pen,
	Rectangle rect
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

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

Type: System.Drawing.Rectangle

A Rectangle structure that represents the rectangle to draw.

Remarks

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

See Also

Reference