IView 转 UIImage
来源:互联网 发布:mysql 清空数据表 编辑:程序博客网 时间:2024/06/06 20:45
- (UIImage*) imageWithUIView:(UIView*) view{
// 创建一个bitmap的context
// 并把它设置成为当前正在使用的context
UIGraphicsBeginImageContext(view.bounds.size);
CGContextRef currnetContext = UIGraphicsGetCurrentContext();
//[view.layer drawInContext:currnetContext];
[view.layer renderInContext:currnetContext];
// 从当前context中创建一个改变大小后的图片
UIImage* image = UIGraphicsGetImageFromCurrentImageContext();
// 使当前的context出堆栈
UIGraphicsEndImageContext();
return image;
}
转自:http://blog.csdn.net/iukey/article/details/7662612
- IView 转 UIImage
- iview
- UIImage转NSData,NSData转UIImage
- swift base64转UIImage,UIImage转base64
- UIView 转 UIImage
- UIImage图片转NSData
- UIView 转 UIImage IOS
- UIColor 转 UIImage
- UIView转UIImage
- cgpdfpageref转uiimage
- UIImage图片转NSData
- UITextView转UIImage
- UIColor转UIImage
- iOS UIImage 转NSString
- UIView转UIImage
- UIImage转Md5
- UIView 转 UIImage
- UIImage 转灰度
- UIWebView 实现翻页功能
- C语言实现学生管理信息系统
- mix-ins的简单介绍
- Git Revert
- 彻底删除MySQL注册表信息
- IView 转 UIImage
- 详细讲解在Spring中进行集成测试AbstractDependencyInjectionSpringContextTests
- 张小龙腾讯内刊专访,谈微信产品观、国际化、团队管理……
- cxf webservice部署servlet容器报错
- xcode + xvim
- 硬盘的寻址方式CHS&LBA
- Oracle database 14章 使用数据泵导出和导入 监控数据泵作业 理论试验
- Make C Library
- MyEclipse/eclipse的php开发调试环境配置