iOS画图 圆形裁剪
来源:互联网 发布:新申请域名无法访问 编辑:程序博客网 时间:2024/05/13 09:08
#import "SCHCircle.h"
@implementation SCHCircle
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
// UIImage *img=[UIImage imageNamed:@"7.jpg"];
// [img drawInRect:rect];
CGContextRef ctx=UIGraphicsGetCurrentContext();
CGContextAddEllipseInRect(ctx, rect);
[[UIColorredColor] set];
CGContextClip(ctx);//裁剪
CGContextFillPath(ctx);
UIImage *img=[UIImageimageNamed:@"7.jpg"];
[imgdrawInRect:rect];
}
@end
0 0
- iOS画图 圆形裁剪
- iOS 裁剪image为圆形
- iOS imageview 裁剪成圆形
- iOS 裁剪头像为圆形
- iOS裁剪图片成圆形
- IOS 圆形图片(图片裁剪)
- iOS 画图 图片圆形处理
- ios Image裁剪成圆形的方法
- ios Image裁剪成圆形的方法
- ios Image裁剪成圆形的方法
- ios Image裁剪成圆形的方法
- ios Image裁剪成圆形的方法
- iOS 将UIImage裁剪成圆形
- iOS方形图片裁剪成圆形
- iOS 把图片裁剪成圆形
- ios Image裁剪成圆形的方法 [转]
- iOS - 把应用里边的头像/图片裁剪成圆形
- iOS Quartz2D - 裁剪图片为带边框的圆形图片
- 第一个POST JSON数据的页面
- android 权限大全
- Xcode设置TAB为4个空格
- C++ Primer 学习笔记_30_STL实践与分析(4)
- jquery中的trigger和triggerHandler区别
- iOS画图 圆形裁剪
- 深入浅出JMS(一)——JMS简介
- C++ Primer 学习笔记_31_STL实践与分析(5) --再谈string类型(上)
- Spring mvc view层循环展示controller层发送的集合对象
- JavaScript typeOf()
- poj 2828
- lua垃圾回收机制
- TCP/IP、Http的区别
- 对PES NALU 帧的疑惑