【发布时间】:2011-01-17 05:17:59
【问题描述】:
我正在通过CGContext绘制Arc。我想在Arc的中心点绘制一个字符串。我如何喜欢通过CGContext绘制的Arc中的中心点。
CGContextSetAlpha(ctx, 0.5);
CGContextSetRGBFillColor(ctx, color.red, color.green, color.blue, color.alpha );
CGContextMoveToPoint(ctx, cX, cY);
CGContextAddArc(ctx, cX, cY, radious+10, (startDeg-90)*M_PI/180.0, (endDeg-90)*M_PI/180.0, 0);
CGContextClosePath(ctx);
CGContextFillPath(ctx);
【问题讨论】:
标签: iphone ipad math cgcontext