Exemple #1
0
        public System.Drawing.Bitmap MergeRecursive(List <Bitmap> images, Bitmap merged = null, int cont = 2)
        {
            Merger merger = new Merger();

            if (images.Count == 2 && cont == 2)
            {
                cont++;
                return(MergeRecursive(images, merger.Merge(images[0], images[1]), cont));
            }
            else if (cont < images.Count)
            {
                cont++;
                return(MergeRecursive(images, merger.Merge(merged, images[cont - 1]), cont));
            }
            return(merged);
        }