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

            editor.DismissViewController(true, null);

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