将color转为UIImage
来源:互联网 发布:淘宝达人后台网址 编辑:程序博客网 时间:2024/05/16 16:55
//将color转为UIImage- (UIImage *)createImageWithColor:(UIColor *)color{ CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [color CGColor]); CGContextFillRect(context, rect); UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return theImage;}
0 0
- 将color转为UIImage
- iOS-将UIImage转为NSData
- UIImage分类将color转换为image
- UIImage转为灰度图
- UIImage转为灰度图
- UIImage 数组转为视频
- UIIMAGE转为灰度图
- 背景颜色转为UIImage
- rgb原始数据转为uiimage
- iOS如何将RGB565的原始图像数据转为UIImage对象
- UIImage tint color 的增加
- UILable转为UIImage的方法
- UIimage的data转为NSString
- 将普通的数字转为color值,java和javascript的区别
- iOS UIimage和UI color转换
- Swift中将PHAsset对象转为UIImage对象
- 将UIView转成UIImage,将UIImage转成PNG/JPG
- 将UIView转成UIImage,将UIImage转成PNG/JPG
- SQL查询语句
- 数据库-封锁(locking)
- 单例模式将配置文件加载在jvm内存,修改配置文件,可调用reload方法重新加载至内存
- 制作centos6.5 镜像,安装cloud-init 支持openstack 密码注入
- HDU,1232,畅通工程
- 将color转为UIImage
- tomcat+servlet例子
- 垂直外边距合并--CSS的Margin属性:详解margin属性
- Navicat中应用程序角色设计器的用处
- android Activity之间的数据交换
- linux环境配置文件分类
- IOS入门知识点汇总
- ServletContext总结
- SVN 遇到的问题