首页 > 其他 > 详细

绘制圆形椭圆

时间:2015-04-01 00:02:53      阅读:272      评论:0      收藏:0      [点我收藏+]
/**绘制圆形*/
    CGContextRef contextRef=UIGraphicsGetCurrentContext();
    CGContextAddArc(contextRef, 150, 300, 100, 0, 3.14*2, 0);
    CGContextStrokePath(contextRef);
    
    /**绘制椭圆*/
    CGContextAddEllipseInRect(contextRef, CGRectMake(50, 400, 200, 100));
    CGContextStrokePath(contextRef);

 

绘制圆形椭圆

原文:http://www.cnblogs.com/thbbsky/p/4382264.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!