private bool SelectCropArea() { bool smartCrop = ProcessCrop(this.inImage, out points); NSUserDefaults defaults = NSUserDefaults.StandardUserDefaults; bool b = defaults.BoolForKey("cropState"); if (b && smartCrop) { Process(); } else { CGPoint[] cg_points = points.ToCGPointRect(); PageEditorController pageEditor = new PageEditorController(this.inImage.Image, cg_points); pageEditor.Delegate = this; pageEditor.ModalPresentationStyle = UIModalPresentationStyle.FullScreen; this.PresentViewController(pageEditor, false, null); } return(smartCrop); }
public void PageEditorControllerDidFinishedEditingPage(PageEditorController editor, CGPoint[] pts) { points = PxRectangle.FromCGPointRect(pts); editor.DismissViewController(true, null); this.Process(); }
public void PageEditorControllerCancel(PageEditorController editor) { editor.DismissViewController(true, null); }