Timeline.Save

Save(string, ImageOptionsBase)

Saves the PsdImage’s and Timeline data to the specified file location in the specified format according to save options.

public void Save(string filePath, ImageOptionsBase options)
ParameterTypeDescription
filePathStringThe file path.
optionsImageOptionsBaseThe options.

Examples

The following code demonstrates the support of export Timeline to a Gif image.

[C#]

string sourceFile = "4_animated.psd";
string outputGif = "out_4_animated.psd.gif";

using (var psdImage = (PsdImage)Image.Load(sourceFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
    psdImage.Timeline.Save(outputGif, new GifOptions());
}

See Also


Save(Stream, ImageOptionsBase)

Saves the PsdImage’s and Timeline data to the specified stream in the specified format according to save options.

public void Save(Stream outputStream, ImageOptionsBase options)
ParameterTypeDescription
outputStreamStreamThe output stream.
optionsImageOptionsBaseThe options.

Examples

The following code demonstrates the support of export Timeline to a Gif image.

[C#]

string sourceFile = "4_animated.psd";
string outputGif = "out_4_animated.psd.gif";

using (var psdImage = (PsdImage)Image.Load(sourceFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
    psdImage.Timeline.Save(outputGif, new GifOptions());
}

See Also