Bitmap frame = new(1920, 1080, PixelFormat.Format32bppPArgb); Graphics g = Graphics.FromImage(frame); g.SmoothingMode = SmoothingMode.HighQuality; for (int f1 = 0; f1 < frames.Count; f1++) { int f2 = (f1 + 1) % frames.Count; frame1 = frames[f1]; frame2 = frames[f2]; for (int i = 0; i < (makeVideo ? 200 : 1); i++) { ++frameNumber; percent = makeVideo ? i * step % 100 : 25; mixedFrame = Mix(w, h, frame1, frame2, percent); DrawEdge(w, h, carBody, mixedFrame, percent); for (int n = 0; n < 2; n++) { for (int m = 0; m < 3; m++) { g.DrawImage(mixedFrame, (1920 - 50) / 2 * n, (1080 - 50) / 3 * m - 40); } } string fileName = string.Format("{0}/{1:d5}.png", outputDirectory, frameNumber); frame.Save(fileName); Console.WriteLine(fileName); } }