Esempio n. 1
0
 public static UniversalCamera GetDefault()
 {
     if (_Default == null)
     {
         _Default = new UniversalCamera();
     }
     return(_Default);
 }
Esempio n. 2
0
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
            camera = UniversalCamera.GetDefault();
            await camera.InitPreview(capturePreview);

            timer          = new DispatcherTimer();
            timer.Interval = new TimeSpan(0, 0, 1);
            timer.Tick    += Timer_Tick;
            await camera.AutoFocus();

            timer.Start();
        }