From 29147bbbede166ee48470b1457cc5993f7d5a7bf Mon Sep 17 00:00:00 2001 From: Benjamin Barratt love Date: Tue, 15 Nov 2022 14:25:38 +0000 Subject: [PATCH] added blending to video pls fix performance --- Program.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 29a7a79..5f7ec32 100644 --- a/Program.cs +++ b/Program.cs @@ -42,15 +42,19 @@ namespace Cupola List oldBitmaps = new List(); + oldBitmaps.Add(previousBit); + for (int i = 1; i < images.Count; i++) { - oldBitmaps.Add(previousBit); - previousBit.Save(name + "-" + (i - 1).ToString() + ".png"); Console.WriteLine(i.ToString()); previousBit = await Combine(new Bitmap[] { previousBit, images[i] }, 1f); + + oldBitmaps.Add(previousBit); + + previousBit = await Combine(oldBitmaps.ToArray(), 0.6f); // PERFORMANCE } } }