Beispiel #1
0
 // do recording
 public void DoRecord(Bitmap bitmap)
 {
     if (writer == null)
     {
         return;
     }
     writer.AddFrame(bitmap);
 }
Beispiel #2
0
        public void StartConvert()
        {
            // begin read file
            reader.Open(fileFrom);

            // begin write file
            writer.Open(fileTo, (int)reader.FrameRate, reader.Width, reader.Height);

            while (reader.CurrentPosition < reader.Length)
            {
                writer.AddFrame(reader.GetNextFrame());
            }
        }