# Convert Image to PPT in C++

> Convert image to PPT in C++. Use the C++ library API to convert image files to PowerPoint presentations.

Source: https://products.aspose.com/slides/cpp/conversion/image-to-ppt/
Updated: 2026-07-30



## Convert Image to PPT in C++

[**Aspose.Slides for C++**](/slides/cpp/) 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.

## 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

```cpp
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();
```

## 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++**](/slides/cpp/).

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.

## Convert Image to Other Supported Formats

- [IMAGE TO PPTX](/slides/cpp/conversion/image-to-pptx/)
- [JPG TO PPT](/slides/cpp/conversion/jpg-to-ppt/)
- [JPG TO PPTX](/slides/cpp/conversion/jpg-to-pptx/)
- [PNG TO PPT](/slides/cpp/conversion/png-to-ppt/)
- [PNG TO PPTX](/slides/cpp/conversion/png-to-pptx/)
- [PDF TO PPT](/slides/cpp/conversion/pdf-to-ppt/)
- [PDF TO PPTX](/slides/cpp/conversion/pdf-to-pptx/)
- [HTML TO PPT](/slides/cpp/conversion/html-to-ppt/)
- [HTML TO PPTX](/slides/cpp/conversion/html-to-pptx/)
