Convert JPG to PPT in C++
Convert JPG images to PPT presentations using Aspose.Slides for C++ without Microsoft PowerPoint.
Convert JPG to PPT 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 PPT, you create a PowerPoint presentation that contains slides based on JPG images.
Convert JPG to PPT in C++
Using Aspose.Slides for C++ , you can convert a JPG image to a PPT presentation with just a few lines of code:
C++ code for converting JPG to 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, 10, 10, 100, 100, presentationImage);
presentation->Save(u"presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();
How to convert JPG to PPT 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 PPT.
Save the resulting file as a PPT presentation.
Free Online Converter
Convert presentations and slides online.
Other Supported PowerPoint Conversions
You can also convert files in other formats to PowerPoint.