文/natewang(简书作者)
原文链接:http://www.jianshu.com/p/268f3839d2e6
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。

其实你只需要的是圆角图片。。。。。

 UIGraphicsBeginImageContextWithOptions(image.size, NO, image.scale);
 [[UIBezierPath bezierPathWithRoundedRect:RECT     cornerRadius:RADIUS] addClip];
 [image drawInRect:RECT];
 UIImage* imageNew =     UIGraphicsGetImageFromCurrentImageContext();
 UIGraphicsEndImageContext();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-07-02
相关资源
相似解决方案