예제 #1
0
        private void SaveAdvancedSettings()
        {
            AviExportSettings settings = AviExportSettings.Default;

            settings.PreferredCodecFccCode = _selectedCodec.FourCCCode;
            settings.UseDefaultQuality     = UseDefaultQuality;
            settings.Quality = _quality;
            settings.Save();
        }
예제 #2
0
        private void SaveSettings()
        {
            AviExportSettings settings = AviExportSettings.Default;

            settings.ExportOption    = (int)_exportOption;
            settings.FrameRate       = _frameRate;
            settings.SizeMode        = SizeMode;
            settings.BackgroundColor = BackgroundColor;
            settings.Save();
            // NOTE: ShowTextOverlay is deliberately not persisted due to inherent patient privacy risks
        }
예제 #3
0
        private void LoadSettings()
        {
            AviExportSettings settings = AviExportSettings.Default;

            _exportOption = (ExportOption)settings.ExportOption;
            _frameRate    = settings.FrameRate;

            _selectedCodec = Avi.Codec.GetInstalledCodec(settings.PreferredCodecFccCode);

            _availableCodecs.AddRange(GetAvailiableCodecs());
            if (!_availableCodecs.Contains(_selectedCodec))
            {
                _selectedCodec = Avi.Codec.Find(GetInputFormat(), null);                 //use whatever the OS provides.
            }
            _quality          = settings.Quality;
            UseDefaultQuality = settings.UseDefaultQuality;

            _sizeMode        = settings.SizeMode;
            _backgroundColor = settings.BackgroundColor;
        }