Convert PowerPoint XML Presentation to BMP in C++

Use C++ to convert a PowerPoint XML Presentation file to BMP without Microsoft PowerPoint.

Convert PowerPoint XML Presentation to BMP Using C++

Aspose.Slides for C++ is a PowerPoint processing API that lets you convert a PowerPoint XML Presentation file to BMP in C++ applications without Microsoft PowerPoint. Install the package from NuGet or use the following Package Manager Console command.

Command

PM> Install-Package Aspose.Slides.Cpp

XML to BMP C++ Conversion Source Code

auto presentation = MakeObject<Presentation>(u"presentation.xml");
auto slide = presentation->get_Slide(0);

auto image = slide->GetImage(2.0, 2.0);
image->Save(u"presentation.bmp", ImageFormat::Bmp);
image->Dispose();

presentation->Dispose();

How to Convert PowerPoint XML Presentation to BMP via C++

C++ developers can convert a PowerPoint XML Presentation file to BMP by using Aspose.Slides for C++ to render the first slide as a BMP image.

  1. Load the PowerPoint XML Presentation file with the Presentation class.
  2. Access the first slide.
  3. Call GetImage with the required output size.
  4. Save the image with ImageFormat::Bmp.

System Requirements

Before running the C++ conversion example, make sure that the following prerequisites are available.

  • Microsoft Windows, Linux, or another compatible OS with the supported C++ runtime.
  • Aspose.Slides for C++ referenced in your project.

Built with Aspose.Slides

Convert XML to BMP Online

The free Aspose.Slides Conversion app is built with Aspose.Slides for C++, the same API as the code above. Open it and see what the API can do with your own XML files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides converts files before you write code.
  • Upload XML files and save them as BMP.
  • Download the result or convert more files.