Example #1
0
        private void openEliVideoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (openDlgMovie.ShowDialog() == DialogResult.OK)
            {
                if (eliMovie == null)
                {
                    eliMovie = new Movie();
                }

                eliMovie.Open(openDlgMovie.FileName);

                //the first movie opened, should set the size of the output
                SetupMaker();
                if (maker.EliMovie == null)
                {
                    maker.EliWdith  = eliMovie.Width;
                    maker.EliHeight = eliMovie.Height;
                }

                maker.EliMovie = eliMovie;

                //pull audio if  desired
                if (useSourceAudioItem.Checked)
                {
                    maker.Audio = eliMovie.GetAudio();
                }
            }
            UpdateMenuBar();
            Invalidate();
        }
Example #2
0
        private void openSourceMovieItem_Click(object sender, EventArgs e)
        {
            if (openDlgMovie.ShowDialog() == DialogResult.OK)
            {
                if (inputMovie == null)
                {
                    inputMovie = new Movie();
                }

                inputMovie.Open(openDlgMovie.FileName);

                //the first movie opened, should set the size of the output
                SetupMaker();
                if (maker.SourceMovie == null)
                {
                    maker.Width     = inputMovie.Width;
                    maker.Height    = inputMovie.Height;
                    maker.NumFrames = inputMovie.TotalFrames;
                }

                maker.SourceMovie = inputMovie;

                //pull audio if  desired
                if (useSourceAudioItem.Checked)
                {
                    maker.Audio = inputMovie.GetAudio();
                }
            }
            UpdateMenuBar();
            Invalidate();
        }