objective-c - iOS开发 拍照之后出现一个正方形的框?怎么变成矩形的?
PHP中文网
PHP中文网 2017-04-18 09:20:59
0
5
297

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(5)
洪涛

It seems that the box cannot be turned into a rectangle using the native method. You can consider using third-party libraries, such as PEPhotoCropEditor

Ty80

Rewrite an interface

巴扎黑
allowsEditing = NO
Peter_Zhu
UIGraphicsBeginImageContext(size);
[image drawInRect:CGRectMake(0, 0, size.width, size.height)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
你改变写size就知道了
巴扎黑

It is recommended that you use CaptureSession to build your own camera. If you have high customization requirements for the camera interface, iamgePickerController will disappoint you.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!