GraphicsFillRectangle Method

Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
public void FillRectangle(
	ColorBrush brush,
	float x,
	float y,
	float width,
	float height
)

Parameters

brush  ColorBrush
ColorBrush that determines the characteristics of the fill.
x  Single
The x-coordinate of the upper-left corner of the rectangle to fill.
y  Single
The y-coordinate of the upper-left corner of the rectangle to fill.
width  Single
Width of the rectangle to fill.
height  Single
Height of the rectangle to fill.

Implements

IGraphicsFillRectangle(ColorBrush, Single, Single, Single, Single)

See Also