polyline

The function is used to draw multiple consecutive lines.

void polyline(
	const POINT *points,
	int num
);

Parameters

points

The coordinates of each point, the number of array elements is num.

num

The number of vertices for multiple segments.

Return Value

None

Examples

The following snippet draws two consecutive lines (two methods):

// method 1
POINT pts[] = { {50, 200}, {200, 200}, {200, 50} };
polyline(pts, 3);
// method 2
int pts[] = {50, 200,  200, 200,  200, 50};
polyline((POINT*)pts, 3);