Merge image in C#

Powerful cross-platform .NET API for merging HTML to image using C# code on NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms

Merge HTML to image using Aspose.Slides

Aspose.Slides for .NET is a powerful .NET library used to merge and manipulate presentations, HTML docs, and other files. When you merge HTML to image, you are effectively combining the contents in HTML documents to obtain a single image.

Merge HTML to image in C#

Using Aspose.Slides for .NET , you can merge image files quickly with just a few lines of code

C# code for merging HTML to image

using (Presentation pres = new Presentation())
{
    pres.Slides.RemoveAt(0); // removes default empty slide

    pres.Slides.AddFromHtml("page_1.html");
    pres.Slides.AddFromHtml("page_2.html");

    pres.Slides[0].GetThumbnail(new Size(960, 720)).Save("MergedFile.png", ImageFormat.Png);
}

How to merge HTML to image in C#

  1. Install Aspose.Slides for .NET. See Installation .

  2. Add the library as a reference in your project.

  3. Create an instance of the Presentation class.

  4. Load the HTML docs you want to merge together.

  5. Save the resulting image.

Merge PDF Files Online

How to Merge PDF in Python

Merge other files

You can also combine files in other formats to get a single file