The task is to create a collage of several images and save it in a separate folder using WPF. I could only think of this. How to make the gluing of all images from Image [], I did not understand, as well as creating an array of images using Bitmap.
I would like to see a sample code.
public int Counter = 0; public Image[] Img = new Image[25]; public BitmapImage[] Images = new BitmapImage[25]; private void LoadClick(object sender, RoutedEventArgs e) { OpenFileDialog openDialog = new OpenFileDialog(); if (openDialog.ShowDialog() == true) { this.Image.Source = new BitmapImage(new Uri(openDialog.FileName)); Img[Counter] = this.Image; Counter++; CountImage.Text = Convert.ToString(Counter); } } private void MakeCollag(object sender, RoutedEventArgs e) { }