GraphicsDrawRectangle Method (Pen, Int32, Int32, Int32, Int32)

Draws a rectangle specified by a coordinate pair, a width, and a height.

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.5.0.0 (20.05.0)
Syntax
C#
public void DrawRectangle(
	Pen pen,
	int x,
	int y,
	int width,
	int height
)

Parameters

pen
Type: System.DrawingPen
Pen that determines the color, width, and style of the rectangle.
x
Type: SystemInt32
The x-coordinate of the upper-left corner of the rectangle to draw.
y
Type: SystemInt32
The y-coordinate of the upper-left corner of the rectangle to draw.
width
Type: SystemInt32
Width of the rectangle to draw.
height
Type: SystemInt32
Height of the rectangle to draw.
See Also