iOS照片裁剪器:PhotoTweaks

cwf8 9年前發布 | 30K 次閱讀 iOS開發 移動開發 PhotoTweaks

一個照片裁剪器,支持照片的旋轉,放大,與任意區域的拖拽裁剪。模仿iOS8系統自帶的圖片裁剪界面。

用法 

PhotoTweaksViewController offers all the operations to crop the photo, which includes translation, rotate and scale..

To use it,

UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
PhotoTweaksViewController *photoTweaksViewController = [[PhotoTweaksViewController alloc] initWithImage:image];
photoTweaksViewController.delegate = self;
[picker pushViewController:photoTweaksViewController animated:YES];

Get the cropped image

- (void)finishWithCroppedImage:(UIImage *)croppedImage
{
    // cropped image
}

screenshots

項目主頁:http://www.baiduhome.net/lib/view/home/1427291443043

 本文由用戶 cwf8 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!