FrameTickEventArgs

Clase FrameTickEventArgs

Representa los argumentos del evento FrameTick.

public class FrameTickEventArgs

Propiedades

NombreDescripción
Player { get; }Obtiene el reproductor de presentaciones

Métodos

NombreDescripción
GetFrame()Obtiene el marco actual del PresentationPlayer.

Ejemplos

[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);
    }
}

Véase también