Proud Member
Proud Member

Reputation: 40496

How to clean a CGContextRef prior to drawing?

I have a CGContextRef with things drawn inside, and I want to clear it out so that it is empty (all transparent). How to do it?

Upvotes: 0

Views: 2392

Answers (1)

Deepak Danduprolu
Deepak Danduprolu

Reputation: 44633

CGContextClearRect should do the job.

Upvotes: 3

Related Questions