How can I create this image when I get a simple rectangular image using C# code.
private Bitmap MergeImages(Image image1, Image image2)
{
Bitmap bitmap = new Bitmap(image1.Width + image2.Width, Math.Max(image1.Height, image2.Height));
using (Graphics g = Graphics.FromImage(bitmap))
{
g.DrawImage(image1, 0, 0);
g.DrawImage(image2, image1.Width, 0);
}
return bitmap;
}