UIGraphicsBeginImageContext(CGSizeMake(width_, width_)); |
CGContextRef ctx = UIGraphicsGetCurrentContext(); |
CGContextMoveToPoint(ctx, 20, 20); |
CGContextSetFillColorWithColor(ctx, color.CGColor); |
//画圆 |
CGContextAddArc(ctx, width_/2, width_/2, 14.5, 0, 6.3, 0); |
CGContextFillPath(ctx); |
//取得图片 |
self->pickedColorImageView.image = UIGraphicsGetImageFromCurrentImageContext(); |
UIGraphicsEndImageContext(); |
by: 发表于:2017-10-25 10:44:07 顶(0) | 踩(0) 回复
??
回复评论