贝塞尔曲线画圆角
来源:互联网 发布:网络武侠剧 编辑:程序博客网 时间:2024/05/22 07:09
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,100,100)];
imageView.center =CGPointMake(200,300);
UIImage *anotherImage = [UIImage imageNamed:@"image"];
UIGraphicsBeginImageContextWithOptions(imageView.bounds.size, NO, 1.0);
[[UIBezierPath bezierPathWithRoundedRect:imageView.bounds
cornerRadius:50] addClip];
[anotherImage drawInRect:imageView.bounds];
imageView.image =UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[self.view addSubview:imageView];
0 0
- 贝塞尔曲线画圆角
- 曲线平滑-贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 贝塞尔曲线
- 空格字符和空字符的区别
- 百度地图地理编码接口
- haml
- linux服务器端口查看的方法
- 高仿微信发起群聊添加联系人界面
- 贝塞尔曲线画圆角
- -bash: export: ` ': not a valid identifier
- ubuntu下单网卡绑定多个IP
- Intellij Idea 搭建的 Spring MVC报错404
- java 接口
- OOP,COP,AOP,SOP
- LIVE555play流程
- 【Leetcode】139. Word Break
- Touch 事件的分发和消费机制