From b41ef820afea70acdeedc6a970e9d5aeec071959 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Wed, 11 Jan 2023 12:13:26 +0000 Subject: [PATCH] video --- Program.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Program.cs b/Program.cs index 6d99a6b..d1c8c8b 100644 --- a/Program.cs +++ b/Program.cs @@ -76,6 +76,27 @@ namespace Cupola Console.WriteLine("SAVE"); final.Save(name + ".png"); } + else if (keyGG == ConsoleKey.V) + { + FloatImage previous = new FloatImage(images[0]); + + for (int i = 1; i < images.Count; i++) + { + Console.WriteLine(i.ToString()); + + previous.ToBitmap().Save(name + i.ToString() + ".png"); + + Console.Write("b"); + FloatImage blend = FloatImage.Blend(new FloatImage[] { previous, new FloatImage(images[i]) }, true); + Console.Write("h"); + FloatImage height = FloatImage.Highest(new FloatImage[] { previous, new FloatImage(images[i]) }); + + Console.Write("a"); + previous = FloatImage.Blend(new FloatImage[] { blend, height }, true); + } + + previous.ToBitmap().Save(name + images.Count.ToString() + ".png"); + } } public static async Task Combine(Bitmap[] images, float oldWeight = 1f) // default to brightest