Set the animation time position within the Duration.
Examples
[C#]using(Presentationpresentation=newPresentation("animated.pptx")){using(varanimationsGenerator=newPresentationAnimationsGenerator(presentation.SlideSize.Size.ToSize())){animationsGenerator.NewAnimation+=animationPlayer=>{Console.WriteLine($"Animation total duration: {animationPlayer.Duration}");animationPlayer.SetTimePosition(0);animationPlayer.GetFrame().Save("firstFrame.png");animationPlayer.SetTimePosition(animationPlayer.Duration);animationPlayer.GetFrame().Save("lastFrame.png");};animationsGenerator.Run(presentation.Slides);}}