Convert Image to PPT in C++
Convert image files to PPT presentations using Aspose.Slides for C++ without Microsoft PowerPoint.
Convert Image to PPT Using C++
To convert an image to PPT, create a new Presentation, add the image to its image collection, place it on a slide with AddPictureFrame, and save the presentation in PPT format.
C++ code for converting Image into PPT
auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto imageData = File::ReadAllBytes(u"image.jpg");
auto presentationImage = presentation->get_Images()->AddImage(imageData);
slide->get_Shapes()->AddPictureFrame(ShapeType::Rectangle, 0, 0, 720, 540, presentationImage);
presentation->Save(u"presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();Convert Image to PPT in C++
Aspose.Slides for C++ is a presentation processing API that can import images into slides and save the result as a PPT presentation.
Aspose.Slides for C++ can convert image content to PPT presentations and other presentation-related formats.
How to Convert Image to PPT Using Aspose.Slides for C++ API
These are the steps to convert Image to PPT in C++.
- Install Aspose.Slides for C++.
- Add a library reference (import the library) to your C++ project.
- Open the source image file in C++.
- Save the result as a PPT file.
Built with Aspose.Slides
Convert Image to PPT 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 Image files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides converts files before you write code.
- Upload Image files and save them as PPT.
- Download the result or convert more files.
Convert Image to Other Supported Formats
You can also convert images and save them to other file formats. See all supported formats below.