Convert Image to PPTX in C++
Convert image files to PPTX presentations using Aspose.Slides for C++ without Microsoft PowerPoint.
Convert Image to PPTX in C++
Aspose.Slides for C++ is a presentation processing API that can import images into slides and save the result as a PPTX presentation.
Aspose.Slides for C++ can convert image content to PPTX presentations and other presentation-related formats.
Convert Image to PPTX Using C++
To convert an image to PPTX, create a Presentation from the image file and save it as a PPTX presentation.
C++ code for converting Image into PPTX
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.pptx", SaveFormat::Pptx);
presentation->Dispose();
How to Convert Image to PPTX Using Aspose.Slides for C++ API
These are the steps to convert Image to PPTX 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 PPTX file.
Free Online Converter
Convert presentations and slides online.
Convert Image to Other Supported Formats
You can also convert images and save them to other file formats. See all supported formats below.