一、使用Quartz2D完成图片剪切
1.把图片显示在自定义的view中
  先把图片绘制到view上。按照原始大小,把图片绘制到一个点上。
  代码:

1 - (void)drawRect:(CGRect)rect
2 {
3     UIImage *image2=[UIImage imageNamed:@"me"];
4     [image2 drawAtPoint:CGPointMake(100, 100)];
5 }
View Code

相关文章:

  • 2022-12-23
  • 2021-11-07
  • 2021-12-04
  • 2021-07-06
  • 2022-12-23
  • 2021-06-16
  • 2021-10-08
  • 2021-10-09
猜你喜欢
  • 2021-12-08
  • 2021-08-26
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
相关资源
相似解决方案