Link Search Menu Expand Document

CanvasDrawLine Method (Pen, Single, Single, Single, Single)

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

Namespace:Bytescout.PDF
Assembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.5.1.1204-master
Syntax
public void DrawLine(
	Pen pen,
	float x1,
	float y1,
	float x2,
	float y2
)

Parameters

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

Reference