This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawRectangle Method (Pen, Rectangle)

Draws a rectangle.

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

Syntax

Visual Basic
Public Sub DrawRectangle ( _
	pen As Pen, _
	rect As Rectangle _
)
C#
public void DrawRectangle(
	Pen pen,
	Rectangle rect
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to outline a rectangle.
rect

Type: System.Drawing.Rectangle

The Rectangle object to draw.

Remarks

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

All the coordinates are measured in units specified with Unit property.

See Also

Reference