Table of Contents

Method ExportImagesToFiles

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

ExportImagesToFiles(string, IReadOnlyList<string>)

Exports all images in the collection to files at the specified base path, using the provided file names or default names if none are specified.

public virtual void ExportImagesToFiles(string basePath, IReadOnlyList<string> fileNames)

Parameters

basePath string

The directory path where the image files will be saved. Must be a valid, writable file system path.

fileNames IReadOnlyList<string>

An array of file names to use for the exported images. If the array contains fewer names than images, default names in the format 'ImageN.png' will be used for remaining images.

Remarks

If a file name does not have a supported image extension (.png, .jpg, .jpeg, .bmp), the method appends '.png' by default. Existing files with the same names may be overwritten.