Exemplo n.º 1
0
            public static BuiltInVideoCodecSettings New(VideoCodec codec, string description)
            {
                var info = new BuiltInVideoCodecSettings();

                info.Codec       = codec;
                info.Description = description;

                return(info);
            }
Exemplo n.º 2
0
        private FrameworkElement CreateSettingsTab()
        {
            _colorCodecSettings.Title = "Color Video CODEC";
            _colorCodecSettings.RadioButtonGroupName = "Color Video CODEC";
            _colorCodecSettings.BuiltInCodecs.Add(BuiltInVideoCodecSettings.New(VideoCodec.Raw, "Raw"));
            _colorCodecSettings.BuiltInCodecs.Add(BuiltInVideoCodecSettings.New(VideoCodec.Copy, "Copy"));
            _colorCodecSettings.BuiltInCodecs.Add(BuiltInVideoCodecSettings.New(VideoCodec.Lagarith, "Lagarith"));
            var colorCodecPanel = _colorCodecSettings.CreateGui();

            _monochromeCodecSettings.Title = "Monochrome Video CODEC (only for depth/stencil sequences)";
            _monochromeCodecSettings.RadioButtonGroupName = "Monochrome Video CODEC";
            _monochromeCodecSettings.BuiltInCodecs.Add(BuiltInVideoCodecSettings.New(VideoCodec.Raw, "Raw"));
            _monochromeCodecSettings.BuiltInCodecs.Add(BuiltInVideoCodecSettings.New(VideoCodec.Copy, "Copy"));
            var monochromeCodecPanel = _monochromeCodecSettings.CreateGui();

            var generalGroupBox            = CreateGeneralSettingsGui();
            var fileNamingGroupBox         = CreateFileNamingRulesGui();
            var fileNamingSequenceGroupBox = CreateSequenceNamingRulesGui();
            var fileOverwriteGroupBox      = CreateFileOverwriteRulesGui();

            var wrapPanel = new WrapPanel();

            wrapPanel.HorizontalAlignment = HorizontalAlignment.Stretch;
            wrapPanel.VerticalAlignment   = VerticalAlignment.Stretch;
            wrapPanel.Margin      = new Thickness(5);
            wrapPanel.Orientation = Orientation.Horizontal;
            wrapPanel.Children.Add(colorCodecPanel);
            wrapPanel.Children.Add(monochromeCodecPanel);
            wrapPanel.Children.Add(generalGroupBox);
            wrapPanel.Children.Add(fileNamingSequenceGroupBox);
            wrapPanel.Children.Add(fileNamingGroupBox);
            wrapPanel.Children.Add(fileOverwriteGroupBox);

            var scrollViewer = new ScrollViewer();

            scrollViewer.HorizontalAlignment = HorizontalAlignment.Stretch;
            scrollViewer.VerticalAlignment   = VerticalAlignment.Stretch;
            scrollViewer.Margin = new Thickness(5);
            scrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled;
            scrollViewer.VerticalScrollBarVisibility   = ScrollBarVisibility.Auto;
            scrollViewer.Content = wrapPanel;

            return(scrollViewer);
        }