FrameTickEventArgs

FrameTickEventArgs class

Represents arguments of the FrameTick event.

public class FrameTickEventArgs

Properties

NameDescription
Player { get; }Get the presentation player

Methods

NameDescription
GetFrame()Get the current PresentationPlayer frame.

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