摘要:
通过cgcontextref来画图的时候,实现橡皮擦功能的方式有两种:1. 将画笔设置为背景色来实现橡皮擦功能。这种情况适用于当前设置context的blend mode为normal的时候,即CGContextSetBlendMode(context,kCGBlendModeNormal);此时设置背景色的代码如下:UIGraphicsBeginImageContext(drawBgView.bounds.size);// get the image[drawBgView.layerrenderInContext:UIGraphicsGetCurrentContext()];UIImage* 阅读全文
posted @ 2012-03-17 14:58
pengyingh
阅读(4555)
评论(0)
推荐(0)


浙公网安备 33010602011771号