我正在尝试一个与图像相关的image应用程序。我正在使用一行代码
CGContextDrawImage(context1, CGRectMake(0, 0, width, height), imageRef);我正在处理多个images.So,我想在使用这个.Any内置函数后清除屏幕(就像在C中,我们可以在图形中使用cleardevice ).Any帮助欣赏。
发布于 2011-05-05 16:53:57
查看CGContextFillRect -只需将矩形设置为整个视图,并将画笔设置为纯白即可:)
例如,要清除刚刚绘制的白色图像:
const CGFloat white[] = {1.0f, 1.0f, 1.0f, 1.0f};
CGContextSetFillColor(context1, white);
CGContextFillRect(context1, CGRectMake(0, 0, width, hight));https://stackoverflow.com/questions/5894831
复制相似问题