Convert PowerPoint to Animated GIF

Converting Presentations to Animated GIF Using Default Settings

This sample code in C++ shows you how to convert a presentation to animated GIF using standard settings:

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
pres->Save(u"pres.gif", SaveFormat::Gif);

The animated GIF will be created with default parameters.

Converting Presentations to Animated GIF Using Custom Settings

This sample code shows you how to convert a presentation to animated GIF using custom settings in C++:

auto gifOptions = System::MakeObject<GifOptions>();
// the size of the resulted GIF 
gifOptions->set_FrameSize(Size(960, 720));
// how long each slide will be showed until it will be changed to the next one
gifOptions->set_DefaultDelay(2000);
// increase FPS to better transition animation quality
gifOptions->set_TransitionFps(35);

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
pres->Save(u"pres.gif", SaveFormat::Gif, gifOptions);