Convert JPG to PPTX in C++
Convert JPG images to PPTX presentations using Aspose.Slides for C++ without Microsoft PowerPoint.
Convert JPG to PPTX using Aspose.Slides
Aspose.Slides for C++ is a presentation processing API that can create, convert, and manipulate PowerPoint presentations. When you convert JPG to PPTX, you create a PowerPoint presentation that contains slides based on JPG images.
Convert JPG to PPTX in C++
Using Aspose.Slides for C++ , you can convert a JPG image to a PPTX presentation with just a few lines of code:
C++ code for converting JPG to 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, 10, 10, 100, 100, presentationImage);
presentation->Save(u"presentation.pptx", SaveFormat::Pptx);
presentation->Dispose();
How to convert JPG to PPTX in C++
Install Aspose.Slides for C++. See Installation .
Add the library as a reference in your project.
Create an instance of the Presentation class.
Load the JPG image you want to convert to PPTX.
Save the resulting file as a PPTX presentation.
Free Online Converter
Convert presentations and slides online.
Other Supported PowerPoint Conversions
You can also convert files in other formats to PowerPoint.