Application development frequently requires programmatically merging multiple PNG images together. Wordize for .NET delivers a professional solution for this task, enabling C# developers to generate composite PNG images with minimal code.
The API is designed following C# programming best practices. No external dependencies and straightforward integration allow you to quickly implement PNG image merging functionality into existing .NET projects without architectural changes.
Try the PNG image merging capabilities in our online demonstration. Upload several images, examine the C# code snippet, execute the PNG image merging function, and verify the professional quality of the result.
using Wordize.Merging;
using Wordize.Saving;
ImageSaveOptions saveOptions = new ImageSaveOptions(saveFormat);
saveOptions.PageLayout = MultiPageLayout.Vertical(10);
Merger.Create()
.From("Input1.png")
.From("Input2.png")
.To("Output.png", saveOptions)
.Execute();
using Wordize.Merging;
Merger.Merge("Output.png",
[
"Input1.png",
"Input2.png"
]);
using Wordize.Merging;
using Wordize.Saving;
var imageStreams = Merger.MergeToImages(
["Input1.png", "Input2.png"],
new ImageSaveOptions(SaveFormat.Png) { PageLayout = MultiPageLayout.Vertical(10) },
MergeFormatMode.KeepSourceFormatting
);
using var file = File.Create($"Output.png");
imageStreams[0].Position = 0;
imageStreams[0].CopyTo(file);
using Wordize.Merging;
using Wordize.Saving;
ImageSaveOptions saveOptions = new ImageSaveOptions(saveFormat);
saveOptions.PageLayout = MultiPageLayout.Vertical(10);
Merger.Create()
.From("Input1.png")
.From("Input2.png")
.To("Output.png", saveOptions)
.Execute();
using Wordize.Merging;
Merger.Create()
.From("Input1.png")
.From("Input2.png")
.To("Output.png", SaveFormat.Png)
.Execute();