Masking CGContext with a CGPathRef?

后端 未结 1 1317
情歌与酒
情歌与酒 2021-01-12 03:11

I am doing some drawing using a CGContext. I am currently masking the drawing using a png file like this:

UIImage * myImage = [UIImage imageNamed:@\"frame.pn         


        
相关标签:
1条回答
  • 2021-01-12 03:53
    CGContextAddPath(context, yourPath);
    CGContextClip(context);
    
    0 讨论(0)
提交回复
热议问题