PresentationAnimationsGenerator
Contents
[
Hide
]PresentationAnimationsGenerator class
Represents a generator of the animations in the Presentation
.
public class PresentationAnimationsGenerator : IDisposable
Constructors
Name | Description |
---|---|
PresentationAnimationsGenerator(Presentation) | Creates a new instance of the PresentationAnimationsGenerator . |
PresentationAnimationsGenerator(Size) | Creates a new instance of the PresentationAnimationsGenerator . |
Properties
Name | Description |
---|---|
DefaultDelay { get; set; } | Gets or sets default delay time [ms]. |
ExportedSlides { get; } | Get the number of the exported slides count. |
IncludeHiddenSlides { get; set; } | Get or sets if hidden slides should be included. |
Methods
Name | Description |
---|---|
Dispose() | Disposes the instance of the PresentationAnimationsGenerator . |
Run(IEnumerable<ISlide>) | Run the animation events generation for each slide. |
Run(IEnumerable<ISlide>, int, FrameTickHandler) | Run the animation events generation for each slide. |
Fields
Name | Description |
---|---|
readonly FrameSize | Gets the frame size. |
Events
Name | Description |
---|---|
event NewAnimation | An event represents that a new animation was generated. |
Examples
[C#]
using (Presentation presentation = new Presentation("animated.pptx"))
{
using (var animationsGenerator = new PresentationAnimationsGenerator(presentation))
using (var player = new PresentationPlayer(animationsGenerator, 33))
{
player.FrameTick += (sender, args) =>
{
args.GetFrame().Save($"frame_{sender.FrameIndex}.png");
};
animationsGenerator.Run(presentation.Slides);
}
}
See Also
- namespace Aspose.Slides.Export
- assembly Aspose.Slides