# Convert PNG to PPT in C++

> Convert PNG to PPT in C++. Use the C++ library API to add PNG images to slides and save the result as PPT.

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



## Convert PNG to PPT in C++

[**Aspose.Slides for C++**](/slides/cpp/) is a presentation processing API that can create slides from images and save the result in presentation or document formats. Using **Aspose.Slides for C++**, developers can convert PNG images to PPT with just a few lines of C++ code.

Aspose.Slides for C++ can place PNG images on slides and save the presentation as PPT and other related formats.

## Convert PNG to PPT Using C++

To convert PNG to PPT, create a `Presentation`, add the PNG image to a slide, and save the presentation in PPT format.

### C++ code for converting PNG into PPT

```cpp
auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto slideSize = presentation->get_SlideSize()->get_Size();

auto imageData = File::ReadAllBytes(u"image.png");
auto presentationImage = presentation->get_Images()->AddImage(imageData);
slide->get_Shapes()->AddPictureFrame(
    ShapeType::Rectangle,
    0,
    0,
    slideSize.get_Width(),
    slideSize.get_Height(),
    presentationImage);

presentation->Save(u"document.ppt", SaveFormat::Ppt);
presentation->Dispose();
```

## How to convert PNG to PPT using Aspose.Slides for C++ API

These are the steps to convert PNG to PPT in C++.

Install [**Aspose.Slides for C++**](/slides/cpp/).

Add a library reference to your C++ project.

Create a `Presentation` instance and add the PNG image to a slide.

Save the presentation as a PPT presentation.

## Convert PNG to Other Supported Formats

- [PNG TO JPG](/slides/cpp/conversion/png-to-jpg/)
- [PNG TO PDF](/slides/cpp/conversion/png-to-pdf/)
- [PNG TO PPTX](/slides/cpp/conversion/png-to-pptx/)
- [PNG TO SVG](/slides/cpp/conversion/png-to-svg/)
