iOS: CGContext的函数CGContextAddLines

来源:互联网 发布:怎样上淘宝购物流程 编辑:程序博客网 时间:2024/06/05 01:12


void CGContextAddLines (

   CGContextRef c,

   const CGPoint points[],

   size_t count

);


example:



CGContextMoveToPoint (c, points[0].x, points[0].y);


for (k = 1; k < count; k++) {


    CGContextAddLineToPoint (c, points[k].x, points[k].y);


}