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

GdiGraphics.FillRectangle Method (Brush, Single, Single, Single, Single)

Fills a rectangle.

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

Syntax

Visual Basic
Public Sub FillRectangle ( _
	brush As Brush, _
	x As Single, _
	y As Single, _
	width As Single, _
	height As Single _
)
C#
public void FillRectangle(
	Brush brush,
	float x,
	float y,
	float width,
	float height
)

Parameters

brush

Type: Aurigma.GraphicsMill.Drawing.Brush

Brush object which is used to fill a rectangle.
x

Type: System.Single

X-coordinate of the top left corner of the rectangle.
y

Type: System.Single

Y-coordinate of the top left corner of the rectangle.
width

Type: System.Single

Width of the rectangle.
height

Type: System.Single

Height of the rectangle.

Remarks

To outline a rectangle, use DrawRectangle(Pen, Single, Single, Single, Single) method.

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

See Also

Reference