GraphicsDrawLine Method (Pen, Int32, Int32, Int32, Int32)

Draws a line connecting the two points specified by the coordinate pairs.

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.5.0.0 (20.05.0)
Syntax
C#
public void DrawLine(
	Pen pen,
	int x1,
	int y1,
	int x2,
	int y2
)

Parameters

pen
Type: System.DrawingPen
Pen that determines the color, width, and style of the line.
x1
Type: SystemInt32
The x-coordinate of the first point.
y1
Type: SystemInt32
The y-coordinate of the first point.
x2
Type: SystemInt32
The x-coordinate of the second point.
y2
Type: SystemInt32
The y-coordinate of the second point.
See Also