CenterPoint in CGContextAddArc ?

Posted by Mikhail Naimy on Stack Overflow See other posts from Stack Overflow or by Mikhail Naimy
Published on 2011-01-17T05:17:59Z Indexed on 2011/01/17 6:53 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

Hi , i am drawing Arc through CGCOntext.I want to draw a string in the center Point of Arc.how can i fond the center point in the Arc which has been drawn through CGContext.

              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); 

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad