UIImage 切图
2015-06-09 10:07
465 查看
CGImageRef imageRef = CGImageCreateWithImageInRect([[UIImage imageNamed:@"imageName"] CGImage], CGRectMake(0, 0, percentage*width, height)); [image setImage:[UIImage imageWithCGImage:imageRef]]; CGImageRelease(imageRef);
相关文章推荐
- jsp中 response和request区别
- 【Java GUI】文本框和文本区
- Android Studio --> Gradle Build设置自动
- Adeneo Embedded: Building Qt 5.1 for Freescale i.MX6Introduction on LTIB
- Building QT5 for IMX6(all)
- hdu 4027 Can you answer these queries?(线段树)
- UILabel调整字间距
- UITextView的创建/背景图片/边框和颜色/圆角等
- 关于在openstack中创建实例时任务一直卡在Building的现象描述
- Java GUI 使用确认对话框控制循环
- Column count doesn't match value count at row 1解决方法
- Atitit.guice3 ioc 最佳实践 o9o
- longest-common-subsequence
- pytest框架系列教程:pytest框架在UI自动化测试中的应用
- Android之UI主线程更新问题
- 如何在Sublime Text中创建build system命令打开浏览器预览html页面
- UIButton 设置圆角 边框颜色 点击回调方法
- UIScrollView常见属性
- java基础—GUI概述
- 北京周边ui设计培训机构哪里好