views:

679

answers:

1

How do you mask an image using paths? What Im 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? Thanks.

A: 

Take a look at this Stack Overflow comment from a similar thread.

Alex Reynolds