FrameTickEventArgs
FrameTickEventArgs class
Represents arguments of the FrameTick
event.
public class FrameTickEventArgs
Properties
Name | Description |
---|
Player { get; } | Get the presentation player |
Methods
Examples
[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
using (var animationsGenerator = new PresentationAnimationsGenerator(pres))
using (var player = new PresentationPlayer(animationsGenerator, 33))
{
int frameNumber = 0;
player.FrameTick += (sender, args) =>
{
args.GetFrame().Save($"frame_{frameNumber++}.png");
};
animationsGenerator.Run(pres.Slides);
}
}
See Also