Example #1
0
        private void SaveOptions()
        {
            ImageExportSettings settings = ImageExportSettings.Default;

            settings.SelectedImageExportOption = (int)ExportOption;
            settings.SelectedImageExporterId   = SelectedImageExporter.Identifier;
            settings.SizeMode        = SizeMode;
            settings.BackgroundColor = BackgroundColor;
            settings.Save();
            // NOTE: ShowTextOverlay is deliberately not persisted due to inherent patient privacy risks
        }
Example #2
0
        private void InitializeOptions()
        {
            ImageExportSettings settings = ImageExportSettings.Default;

            _exportOption = (ExportOption)settings.SelectedImageExportOption;

            _selectedExporterInfo = GetExporterInfo(settings.SelectedImageExporterId);
            if (_selectedExporterInfo == null)
            {
                _selectedExporterInfo = _exporterInfoList[0];
            }

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