Example #1
0
        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);
        }
Example #2
0
        public void PageEditorControllerDidFinishedEditingPage(PageEditorController editor, CGPoint[] pts)
        {
            points = PxRectangle.FromCGPointRect(pts);

            editor.DismissViewController(true, null);

            this.Process();
        }
Example #3
0
 public void PageEditorControllerCancel(PageEditorController editor)
 {
     editor.DismissViewController(true, null);
 }