コード例 #1
0
ファイル: WebCamera.cs プロジェクト: AntonPashkowskiy/Labs
 public void StartShootVideo(ShootingSettings settings)
 {
     var frameSize = videoSourse.VideoCapabilities[0].FrameSize;
     videoWriter.FrameRate = settings.FrameRate;
     videoWriter.Open(settings.SavingPath, frameSize.Width, frameSize.Height);
     videoSourse.Start();
 }
コード例 #2
0
        private void OnStartStopButtonClick(object sender, RoutedEventArgs e)
        {
            if (webCamera.CameraIsOn)
            {
                webCamera.StopShootVideo();
            }
            else
            {
                var savingPath = GetSavingPath();
                var shootingSettings = new ShootingSettings()
                {
                    SavingPath = savingPath,
                    FrameRate = 15
                };

                webCamera.StartShootVideo(shootingSettings);
            }
        }
コード例 #3
0
ファイル: WebCamera.cs プロジェクト: AntonPashkowskiy/Labs
 public void ShootPhoto(ShootingSettings settings)
 {
     shootingPhotoRequestQueue.Enqueue(settings);
 }