/**
* color转image
*/
- (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;
}
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
相机定格咔嚓