摘要: 1. 对上面的图片做裁剪: CGContextRef ctx = UIGraphicsGetCurrentContext(); // 画圆 CGContextAddEllipseInRect(ctx, CGRectMake(50, 50, 60, 60)); // 圆外的都剪掉 CGCont... 阅读全文
posted @ 2015-03-23 16:15 oumygade 阅读(234) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/wendingding/p/3782551.html 阅读全文
posted @ 2015-03-23 15:23 oumygade 阅读(84) 评论(0) 推荐(0) 编辑
摘要: // 获取图形上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); // 存储上下文栈 CGContextSaveGState(ctx); // 设置图形上下文 CGContextSetLineWidth( ctx, 10); [[... 阅读全文
posted @ 2015-03-23 14:34 oumygade 阅读(116) 评论(0) 推荐(0) 编辑