Contents

CGContextAddLines

Adds a sequence of connected straight-line segments to the current path.

Declaration

extern void CGContextAddLines(CGContextRef c, const CGPoint *points, size_t count);

Parameters

  • c:

    A graphics context .

  • points:

    An array of values that specify the start and end points of the line segments to draw. Each point in the array specifies a position in user space. The first point in the array specifies the initial starting point.

  • count:

    The number of elements in the points array.

Discussion

This is a convenience function that moves to the first point in the sequence and then adds a line to each of the other points, sequentially.

See Also

Constructing a Current Graphics Path