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

Fills the interior of 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 FillRectangle(
	Brush brush,
	float x,
	float y,
	float width,
	float height
)

Parameters

brush

Type: Aurigma.GraphicsMill.AdvancedDrawing.Brush

A Brush that determines the characteristics of the fill.
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 draw an outlined rectangle, use DrawRectangle(Pen, Single, Single, Single, Single) method.

See Also

Reference

Manual