複数の画像や写真を組み合わせて、一貫したマルチフレームまたはマルチページの形式にまとめることで、効率的に画像アルバムを作成できます。この多様な構成は、さまざまな入力画像形式をサポートし、PDF、TIFF、DICOMなどの人気のある出力マルチページ形式をシームレスに生成します。
downloads](https://releases.aspose.com/imaging/net/) から該当のアセンブリファイルを取得するか、NuGet からパッケージを取得して、 Aspose.Imaging
を直接ワークスペースに追加します。
using System; | |
using Aspose.Imaging; | |
using Aspose.Imaging.FileFormats.Pdf; | |
namespace CSharpTutorials | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
if(args.Lenght<3) | |
{ | |
Console.WriteLine("Please specify inpur folder with images to merge and "); | |
Console.WriteLine("wildcard mask of the input images (i.e. *.png or *.jpg) and"); | |
Console.WriteLine("output folder to create image album"); | |
return; | |
} | |
// Valid image album plug-in license use example | |
Metered metered = new Metered(); | |
metered.SetLicense("***********", // public key | |
"***********" // private key | |
); | |
string OutputDirectory = Path.Combine(TestDirectory, "ImageAlbum"); | |
if (!Directory.Exists(OutputDirectory)) | |
{ | |
Directory.CreateDirectory(OutputDirectory); | |
} | |
var images = new List<Image>(); | |
foreach (var fileName in Directory.GetFiles(TestDirectory, "*.png")) | |
{ | |
var image = Image.Load(fileName); | |
images.Add(image); | |
} | |
try | |
{ | |
var outputPath = Path.Combine(OutputDirectory, "image_album.pdf"); | |
MakeAlbum(images, new PdfOptions(), outputPath); | |
} | |
finally | |
{ | |
images.ForEach(image => image.Dispose()); | |
} | |
} | |
void MakeAlbum(List<Image> images, ImageOptionsBase imageOptions, string outputPath) | |
{ | |
using (var image = Image.Create(images.ToArray())) | |
{ | |
image.Save(outputPath, imageOptions); | |
} | |
} | |
} | |
} |
フォトアルバムメーカーは、ワークフローを向上させるためにさまざまなサービスと統合できます。
フォトアルバムメーカーは、JPEG、PNG、BMP、TIFFなどのさまざまな画像形式をサポートしています。
はい、PDF、TIFF、およびDICOMを含む複数のフォーマットでマルチページ出力を作成できます。
はい、私たちのウェブサイトから無料のトライアル版をダウンロードできます。