回答
謝謝,我找到了一個有用的庫,但是我在庫上有一個圖像方向上的錯誤 –
iOS開發人員的生活並不容易:) – Stavash
你可以用它來裁剪圖像的開放源代碼。
CGRect rect = CGRectMake(some rect);
CGImageRef imageRef = CGImageCreateWithImageInRect([urImageView.image CGImage], rect);
UIImage *cropedImage = [UIImage imageWithCGImage:imageRef];
如果我理解你的問題正確的話,你要提出一個UIImagePickerController
與採摘之前裁剪圖片的能力。這是內置到的UIImagePickerController,只是allowsEditing
屬性設置爲YES
。有關更多信息,請參閱文檔http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html。
我知道這個財產,不幸的是,它不允許我指定裁剪的大小 –
- 1. 如何使用默認裁剪意圖裁剪android棉花糖中的圖像?
- 2. 圖像裁剪在IOS
- 3. 如何在iOS中裁剪圖像
- 4. 在Android中實現裁剪圖像
- 5. 從現有圖像中裁剪圖像
- 6. 實時裁剪圖像
- 7. xamario ios裁剪圖像像andorid
- 8. 圖像裁剪:如何防止默認拖拽拖放操作?
- 9. 裁剪圖像
- 10. 裁剪圖像
- 11. 裁剪圖像
- 12. 如何裁剪DICOM圖像
- 13. 如何裁剪圖像
- 14. 如何裁剪圖像?
- 15. 圖像裁剪AVCaptureSession圖像
- 16. 笨裁剪圖像
- 17. 圖像裁剪c#
- 18. Itext7 - 裁剪圖像
- 19. WPF圖像裁剪
- 20. html5圖像裁剪
- 21. Silverlight圖像裁剪
- 22. 裁剪YUV圖像
- 23. WPF圖像裁剪
- 24. 圖像裁剪PHP
- 25. 裁剪android圖像
- 26. PHP - 裁剪圖像
- 27. GWT圖像裁剪
- 28. 裁剪現有的圖像視圖
- 29. WinRT中的裁剪/裁剪圖像
- 30. 無法剪裁/裁剪圖像
您可以使用下面的第三方庫這一點。這些提供了用於在iPhone/iPod Touch應用程序中裁剪和縮放照片的UI。 - [BJImageCropper](https://github.com/barrettj/BJImageCropper) - [SSPhotoCropperViewController](https://github.com/ardalahmet/SSPhotoCropperViewController) - [ImageCropper](https://github.com/iosdeveloper/ImageCropper ) - [BFCropInterface](https://github.com/azzikid/BFCropInterface)[BJImageCropper](https://github.com/barrettj/BJImageCropper)和[SSPhotoCropperViewController](https://github.com/)的組合ardalahmet/SSPhotoCropperViewController)將是一個 –