# Convert Image to PPTX in C++

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

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



## Convert Image to PPTX 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 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 new Presentation, add the image to its image collection, place it on a slide with `AddPictureFrame`, and save the presentation in PPTX format.

### C++ code for converting Image into PPTX

```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.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++**](/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 PPTX file.

## Convert Image to Other Supported Formats

- [IMAGE TO PPT](/slides/cpp/conversion/image-to-ppt/)
- [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/)
