GraphicsFillRectangle Method (Brush, Int32, Int32, Int32, Int32)
Fills the interior of a rectangle specified by a pair of coordinates, a width and a height.

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.05
Syntax
public void FillRectangle(
	Brush brush,
	int x,
	int y,
	int width,
	int height
)

Parameters

brush
Type: Aspose.ImagingBrush
Brush that determines the characteristics of the fill.
x
Type: SystemInt32
The x-coordinate of the upper-left corner of the rectangle to fill.
y
Type: SystemInt32
The y-coordinate of the upper-left corner of the rectangle to fill.
width
Type: SystemInt32
Width of the rectangle to fill.
height
Type: SystemInt32
Height of the rectangle to fill.
Exceptions
ExceptionCondition
ArgumentNullExceptionbrush is null.
See Also