Ejemplo n.º 1
0
 private void StopRecord()
 {
     _stg.StopRecord();
     if (_viewModel.GenerateVideo)
     {
         GenerateVideo(_stg.Jpgs, _stg.Fps, _targetBorder.Width, _targetBorder.Height);
     }
     else
     {
         ModifyWindow mw = new ModifyWindow(_stg.Jpgs, _stg.Fps, _targetBorder.Width, _targetBorder.Height);
         mw.Show();
     }
 }
Ejemplo n.º 2
0
        private void openGifButton_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter           = "*GIF文件(*.gif)|*.gif";
            ofd.RestoreDirectory = true;
            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                STGProcessor stg = new STGProcessor();
                stg.GifFileName = ofd.FileName;
                stg.GifToJpgs();
                ModifyWindow mw = new ModifyWindow(stg.Jpgs, stg.Fps, stg.Width, stg.Height);
                mw.Show();
            }
        }