Timeline.Save
Contents
[
Hide
]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)
Parameter | Type | Description |
---|---|---|
filePath | String | The file path. |
options | ImageOptionsBase | The 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
- class ImageOptionsBase
- class Timeline
- namespace Aspose.PSD.FileFormats.Psd.Layers.Animation
- assembly Aspose.PSD
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)
Parameter | Type | Description |
---|---|---|
outputStream | Stream | The output stream. |
options | ImageOptionsBase | The 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
- class ImageOptionsBase
- class Timeline
- namespace Aspose.PSD.FileFormats.Psd.Layers.Animation
- assembly Aspose.PSD