Пример #1
0
        CIContext CreateContext()
        {
            var options = new CIContextOptions {
                UseSoftwareRenderer = false
            };

            return(CIContext.FromOptions(options));
        }
Пример #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.Title = "Intelligent Kiosk";

            SetupSource();

            var options = new CIContextOptions();

            faceDetector = CIDetector.CreateFaceDetector(null, true);
            borderImage  = UIImage.FromFile("square.png");

            UIDevice.CurrentDevice.BeginGeneratingDeviceOrientationNotifications();
        }