added blending to video

pls fix performance
This commit is contained in:
Benjamin Barratt love 2022-11-15 14:25:38 +00:00
parent 7cf896365c
commit 29147bbbed

View File

@ -42,15 +42,19 @@ namespace Cupola
List<Bitmap> oldBitmaps = new List<Bitmap>();
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
}
}
}