简体   繁体   中英

How to capture a frame from PowerPoint presentation?

I have a PowerPoint slide with three bullet points appearing as user presses Enter on keyboard. I want to save each of those presentation frames as separate images. SO, first image should contain only first bullet point, second should contain first two and third should contain all three.

If I just do standard export, all three bullet points appear in one image. I tried this, but it crashes:

 Image my_image = (Image)presentation.Slides[4].TimeLine.MainSequence[2];

 my_image.Save(@"..\img_test.jpg");

I would appreciate some help.

One (ugly) Way of doing this, would be to get the Text eg:

objTextRng = objSlide.Shapes[1].TextFrame.TextRange;

and afterwards manypulating it the way you need it befor saving the slide.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM