Beispiel #1
0
 public void SetAVSView(AviSynthObject avso)
 {
     this.avso = avso;
     panel1.Controls.Clear();
     avsPanel = new Composition.View();
     avsPanel.ChangeViewSize(new Size(composition.Size.Width, composition.Size.Height));
     panel1.Controls.Add(avsPanel);
     avsPanel.Dock = DockStyle.Fill;
 }
Beispiel #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);
 }
Beispiel #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);
            }
        }