コード例 #1
0
        public void Start()
        {
            _settings       = null;
            _particlefinder = new ParticleFinder(Settings.Default.Luminance, false, 60 * 25);
            _camera         = new CameraMJPG(Settings.Default.CameraURL, Settings.Default.FrameRate, Settings.Default.Compression);
            // _camera = new Camera(Settings.Default.CameraURL, Settings.Default.FrameRate);

            _trim = Settings.Default.Trim;

            _camera.Start();
        }
コード例 #2
0
        // _settingsbtn_Click opens the settings window, and restarts the camera with the
        // new settings.
        private void _settingsbtn_Click(object sender, RoutedEventArgs e)
        {
            if (_settings == null)
            {
                _settings = new AppSettings(this);

                _settings.Visibility = Visibility.Visible;

                if (_camera != null)
                {
                    _camera.Stop();
                    _camera = null;
                }
            }
        }