Esempio n. 1
0
        public Settings GetComposition()
        {
            Settings set = new Settings();
            set.ProjectName = txtProject.Text;
            set.AuthorName = txtAuthor.Text;
            set.FPS = (FrameRate)cbbFPS.SelectedItem;
            set.Size = (FrameSize)cbbSize.SelectedItem;
            set.SetDuration(Convert.ToInt32(txtDurMin.Text), Convert.ToInt32(txtDurSec.Text));

            return set;
        }
Esempio n. 2
0
 public void SetCompositionAVS(Settings set, AviSynthObject avso)
 {
     avstn.Composition = set;
     avstn.Avs = avso;
     avstn.Text = "AviSynth";
     avstn.ImageIndex = 1;
     maintn.Nodes.Add(avstn);
 }
Esempio n. 3
0
        private void tsbAviSynth_Click(object sender, EventArgs e)
        {
            CompositionForm cf = new CompositionForm();
            DialogResult dr = cf.ShowDialog();
            if (dr == DialogResult.OK)
            {
                composition = new Settings();
                composition = cf.GetComposition();
            }

            mdiView.Composition = composition;

            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "AviSynth script|*.avs";
            dr = ofd.ShowDialog();
            if (dr == DialogResult.OK)
            {
                avso = new AviSynthObject(ofd.FileName);
                mdiView.SetAVSView(avso);
                mdiView.TrackBar.Maximum = avso.Clip.num_frames;
                mdiTools.SetROOT();
                mdiTools.SetCompositionAVS(composition, avso);
                avso.Update(0);
                mdiView.View.ChangeViewImage(avso.Image);
                FPS = Convert.ToDouble(avso.Clip.raten) / Convert.ToDouble(avso.Clip.rated);
                mdiView.View.ChangeFrameAndRefresh(0);
            }
        }