GetFrame

FrameTickEventArgs.GetFrame method

Get the current PresentationPlayer frame.

public Bitmap GetFrame()

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