1

How do you mask an image using paths? What I am trying to do is draw a line using CGContextStrokePath and show only those parts of a CGLayerRef which are under it. Also, how do you erase only those parts of the CGLayerRef which are under it?

Asciiom
  • 9,867
  • 7
  • 38
  • 57
Reeds
  • 211
  • 1
  • 3
  • 12

1 Answers1

0

Also look at the docs for CGContextSetBlendMode(), especially when used with kCGBlendModeClear.

livingtech
  • 3,570
  • 29
  • 42