Khi phát triển ứng dụng, thường cần kết hợp nhiều hình ảnh với nhau theo chương trình. Wordize for .NET cung cấp giải pháp chuyên nghiệp cho tác vụ này, cho phép các nhà phát triển C# tạo hình ảnh ghép với lượng mã tối thiểu.
Hãy thử khả năng hợp nhất hình ảnh trong bản demo trực tuyến của chúng tôi. Tải lên một số hình ảnh, nghiên cứu đoạn mã C#, chạy chức năng hợp nhất hình ảnh và kiểm tra chất lượng chuyên nghiệp của kết quả.
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();