Zagham Arshad
Zagham Arshad

Reputation: 111

How To Remove Line in Core Graphics

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

Upvotes: 1

Views: 1383

Answers (1)

Vignesh
Vignesh

Reputation: 10251

You can erase,

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

Upvotes: 5

Related Questions