Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリで CGContextAddLineToPoint を使用して線を描画します。特定のポイントから線を削除したいのですが、これを行うにはどうすればよいですか。線を描画するためにタッチを使用しています。
消すことができる、
2 つの点が与えられたら、 を設定して、同じ属性 (lineWidth など) で線を描画しますCGContextSetBlendMode(context, kCGBlendModeClear)。
CGContextSetBlendMode(context, kCGBlendModeClear)