How To Remove Line in Core Graphics

旧街凉风 提交于 2019-12-08 04:51:07

问题


I draw a line using CGContextAddLineToPoint in my app now i want to remove line from given points how can i do this i am using touches for drawing line


回答1:


You can erase,

Given the two points, draw the line with same attributes(lineWidth etc.,) by setting the CGContextSetBlendMode(context, kCGBlendModeClear).



来源:https://stackoverflow.com/questions/10601691/how-to-remove-line-in-core-graphics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!