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,729
  • 7
  • 37
  • 57
Reeds
  • 191
  • 1
  • 2
  • 12

1 Answers1

0

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

livingtech
  • 3,461
  • 31
  • 42