简体   繁体   中英

How To Remove Line in Core Graphics

我现在在我的应用程序中使用CGContextAddLineToPoint绘制一条线,我想从给定的点中删除一条线,我该怎么做?

You can erase,

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM