Convert PPSX to BMP in C++
Convert PPSX to BMP using Aspose.Slides for C++ without Microsoft PowerPoint.
Convert PPSX to BMP Using C++
Aspose.Slides for C++ is a C++ library for creating, reading, editing, and converting presentation files. It allows developers to convert PPSX files to BMP in C++ applications without Microsoft PowerPoint.
Install the library from NuGet or download it from the Aspose.Slides for C++ releases page . You can also install it from the Package Manager Console.
Command
PM> Install-Package Aspose.Slides.CppPPSX to BMP C++ Conversion Source Code
auto presentation = MakeObject<Presentation>(u"presentation.ppsx");
auto slide = presentation->get_Slide(0);
auto desiredSize = Size(1200, 800);
auto image = slide->GetImage(desiredSize);
image->Save(u"slide.bmp", ImageFormat::Bmp);
image->Dispose();
presentation->Dispose();How to Convert PPSX to BMP via C++
C++ developers can convert PPSX files to BMP with a few lines of code.
- Create a
Presentationinstance from the source PPSX file. - Get the first slide from the presentation.
- Set the output image size with
Size. - Render the slide to an image with
GetImage. - Save the image as a BMP file with
ImageFormat::Bmp.
System Requirements
Before running the C++ conversion example, make sure that the following prerequisites are available.
- Microsoft Windows, Linux, macOS, or another compatible OS with the supported C++ runtime.
- Aspose.Slides for C++ library referenced in your project.
Built with Aspose.Slides
Convert PPSX 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 PPSX files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides converts files before you write code.
- Upload PPSX files and save them as BMP.
- Download the result or convert more files.
Other Supported Conversions
You can also convert PPSX into many other file formats.