public static SBSDKUIPage Add(UIImage image, SBSDKPolygon polygon)
        {
            var page = new SBSDKUIPage(image, polygon, SBSDKImageFilterType.None);

            Add(page);
            return(page);
        }
        public static void UpdateCurrent(UIImage image, SBSDKPolygon polygon)
        {
            var page = new SBSDKUIPage(image, polygon, Current.Filter);

            Remove(Current);
            Add(page);
            Current = page;
        }
Exemple #3
0
 public void ScannerControllerDidDetectPolygonWithStatus(SBSDKScannerViewController controller, SBSDKPolygon polygon, SBSDKDocumentDetectionStatus status)
 {
     // Everytime the document detector finishes detection it calls this delegate method.
 }
Exemple #4
0
        public void ScannerControllerDidCaptureImageWithDetectedPolygon(SBSDKScannerViewController controller, UIImage image, SBSDKPolygon polygon, SBSDKLensCameraProperties properties)
        {
            // Here we get the full image from the camera and an optional polygon that was detected on the image.

            //this.detectedPolygon = polygon;

            if (cameraDelegate != null)
            {
                cameraDelegate.DidCaptureOriginalImage(image);
            }
        }
        public void ImageEditingViewController(SBSDKImageEditingViewController editingViewController, SBSDKPolygon polygon, UIImage croppedImage)
        {
            if (croppingDelegate != null)
            {
                croppingDelegate.CropViewControllerDidFinish(croppedImage);
            }

            DismissViewController(true, null);
        }
Exemple #6
0
 public void DidCaptureImageWithDetectedPolygon(SBSDKScannerViewController controller, UIImage originalImage, SBSDKPolygon polygon, SBSDKLensCameraProperties properties)
 {
     // Here we get the original (uncropped) image from the camera and an optional polygon that was detected on the image.
     if (cameraDelegate != null)
     {
         cameraDelegate.DidCaptureOriginalImage(originalImage);
     }
 }