コード例 #1
0
        public override void DidCropToImage(TOCropViewController cropViewController, 
            UIImage image, CoreGraphics.CGRect cropRect, nint angle)
        {
            var imageBytes = image.AsPNG().ToArray();
            _taskCompletionSource.SetResult(imageBytes);

            cropViewController.DismissViewController(true, null);
        }
コード例 #2
0
 public override void DidFinishCancelled(TOCropViewController cropViewController, bool cancelled)
 {
     _taskCompletionSource.SetCanceled();
     cropViewController.DismissViewController(true, null);
 }