Exemple #1
0
        private void FormMainConvertor_Load(object sender, EventArgs e)
        {
            Temp_Dir = Path.GetTempPath();

            FFmpegConfig.FFmpegPath           = Path.GetDirectoryName(Application.ExecutablePath) + @"\ffmpeg.exe";
            FFmpegConfig.UserInterfaceManager = new FFmpegUserInterfaceManager(this);
            worker         = new BackgroundWorker();
            worker.DoWork += Worker_DoWork;
            worker.WorkerReportsProgress = true;
            worker.ProgressChanged      += Worker_ProgressChanged;
            worker.RunWorkerCompleted   += Worker_RunWorkerCompleted;
            WindowsTaskbar = new Taskbar(this);

            AllowDrop = true;


            var renderer = new GdiRenderer();

            imageDesignPanel1.SetRenderer(renderer);
        }
Exemple #2
0
        private void FormMainConvertor_Load(object sender, EventArgs e)
        {
            Ls_ProfileName.Items.Clear();
            Ls_ProfileName.Items.AddRange(ListProfiles());

            Temp_Dir      = Path.GetTempPath();
            LastDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyVideos);

            FFmpegConfig.FFmpegPath           = Path.GetDirectoryName(Application.ExecutablePath) + @"\ffmpeg.exe";
            FFmpegConfig.UserInterfaceManager = new FFmpegUserInterfaceManager(this);
            worker         = new BackgroundWorker();
            worker.DoWork += Worker_DoWork;
            worker.WorkerReportsProgress = true;
            worker.ProgressChanged      += Worker_ProgressChanged;
            worker.RunWorkerCompleted   += Worker_RunWorkerCompleted;
            WindowsTaskbar = new Taskbar(this);

            AllowDrop = true;

            var renderer = new GdiRenderer();

            imageDesignPanel1.SetRenderer(renderer);
        }