Contents

CGContextAddLineToPoint

Appends a straight line segment from the current point to the provided point .

Declaration

extern void CGContextAddLineToPoint(CGContextRef c, CGFloat x, CGFloat y);

Parameters

  • c:

    A graphics context whose current path is not empty.

  • x:

    The x-value, in user space coordinates, for the end of the line segment.

  • y:

    The y-value, in user space coordinates, for the end of the line segment.

Discussion

After adding the line segment, the current point is set to the endpoint of the line segment.

See Also

Constructing a Current Graphics Path