Crop area different than Selected Area in iOS?

若如初见. 提交于 2019-12-03 16:10:10
Kleigh

Maybe Check This Previous Question.

It looks like it might be similar to what you are experiencing. A user on that question suggested cropping this way:

CGImageRef imageRef = CGImageCreateWithImageInRect([originalImage CGImage], cropRect);
UIImage *croppedImage = [UIImage imageWithCGImage:imageRef];
CGImageRelease(imageRef);

I hope that this helps or at least gives you a start in the right direction.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!