Beispiel #1
0
 private void button6_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < 100; i++)
     {
         this.Text = i + " - " + FrameGrabber.GetVideoSize(this.textBox1.Text).ToString();
         GC.Collect();
         GC.WaitForPendingFinalizers();
         GC.Collect();
     }
 }
Beispiel #2
0
 private void trackBar1_Scroll(object sender, System.EventArgs e)
 {
     try
     {
         this.pictureBox1.Image = FrameGrabber.GetFrameFromVideo(this.textBox1.Text, ((double)this.trackBar1.Value) / this.trackBar1.Maximum);
     }
     catch (JockerSoft.Media.InvalidVideoFileException ex)
     {
         MessageBox.Show(ex.Message, "Extraction failed");
     }
 }
Beispiel #3
0
 private void button2_Click(object sender, System.EventArgs e)
 {
     try
     {
         this.pictureBox1.Image = FrameGrabber.GetFrameFromVideo(this.textBox1.Text, 0.2d, new Size(200, 200));
     }
     catch (JockerSoft.Media.InvalidVideoFileException ex)
     {
         MessageBox.Show(ex.Message, "Extraction failed");
     }
 }
Beispiel #4
0
 private void button5_Click(object sender, System.EventArgs e)
 {
     try
     {
         FrameGrabber.SaveFrameFromVideo(this.textBox1.Text, 0.2d, this.textBox2.Text);
     }
     catch (JockerSoft.Media.InvalidVideoFileException ex)
     {
         MessageBox.Show(ex.Message, "Extraction failed");
     }
 }
Beispiel #5
0
 private void button4_Click(object sender, System.EventArgs e)
 {
     try
     {
         this.pictureBox1.Image = FrameGrabber.GetFrameFromVideo(this.textBox1.Text, 0.2d);
     }
     catch (JockerSoft.Media.InvalidVideoFileException ex)
     {
         MessageBox.Show(ex.Message, "Extraction failed");
     }
     catch (StackOverflowException)
     {
         MessageBox.Show("The target image size is too big", "Extraction failed");
     }
 }