# Convert TIFF to PowerPoint XML Presentation Using C++

> C++ conversion code for TIFF to PowerPoint XML Presentation. Use the example code for batch TIFF to PowerPoint XML Presentation conversion in C++ applications.

Source: https://products.aspose.com/slides/cpp/conversion/tiff-to-xml/
Updated: 2026-08-11



## Convert TIFF to PowerPoint XML Presentation Using C++

[Aspose.Slides for C++](/slides/cpp/) is a PowerPoint processing API that lets you place TIFF images on slides and export the resulting presentation to PowerPoint XML Presentation in C++ applications without Microsoft PowerPoint. Install the package from [NuGet](https://www.nuget.org/packages/Aspose.Slides.Cpp/) or use the following Package Manager Console command.

### Command

```powershell
PM> Install-Package Aspose.Slides.Cpp
```

## How to Convert TIFF to PowerPoint XML Presentation via C++

C++ developers can convert a TIFF file to PowerPoint XML Presentation by creating a presentation, adding the TIFF image to a slide, and then using Aspose.Slides for C++ to save the presentation as a PowerPoint XML Presentation file.

1.  Create a `Presentation` instance.
1.  Read the TIFF file bytes with `File::ReadAllBytes`.
1.  Add the TIFF image to the first slide with `AddPictureFrame`.
1.  Call `Save` with `SaveFormat::Xml` and the output file path.

## System Requirements

Before running the C++ conversion example, make sure that the following prerequisites are available.

- Microsoft Windows, Linux, or another compatible OS with the supported C++ runtime.
- Aspose.Slides for C++ referenced in your project.

### TIFF to XML C++ Conversion Source Code

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

auto imageData = File::ReadAllBytes(u"image.tiff");
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"image.xml", SaveFormat::Xml);
presentation->Dispose();
```

## Other Supported Conversions

- [TIFF TO BMP](/slides/cpp/conversion/tiff-to-bmp/) — Bitmap Image
- [TIFF TO EMF](/slides/cpp/conversion/tiff-to-emf/) — Enhanced Metafile Format
- [TIFF TO GIF](/slides/cpp/conversion/tiff-to-gif/) — Graphics Interchange Format
- [TIFF TO HTML](/slides/cpp/conversion/tiff-to-html/) — Hypertext Markup Language
- [TIFF TO JPEG](/slides/cpp/conversion/tiff-to-jpeg/) — JPEG Image
- [TIFF TO ODP](/slides/cpp/conversion/tiff-to-odp/) — OpenDocument Presentation Format
- [TIFF TO OTP](/slides/cpp/conversion/tiff-to-otp/) — OpenDocument Presentation Template
- [TIFF TO PDF](/slides/cpp/conversion/tiff-to-pdf/) — Portable Document Format
- [TIFF TO PNG](/slides/cpp/conversion/tiff-to-png/) — Portable Network Graphics
- [TIFF TO POT](/slides/cpp/conversion/tiff-to-pot/) — PowerPoint 97–2003 Template
- [TIFF TO POTM](/slides/cpp/conversion/tiff-to-potm/) — PowerPoint Macro-Enabled Template
- [TIFF TO POTX](/slides/cpp/conversion/tiff-to-potx/) — PowerPoint Template
- [TIFF TO PPS](/slides/cpp/conversion/tiff-to-pps/) — PowerPoint Slide Show
- [TIFF TO PPSM](/slides/cpp/conversion/tiff-to-ppsm/) — Macro-enabled Slide Show
- [TIFF TO PPSX](/slides/cpp/conversion/tiff-to-ppsx/) — PowerPoint Slide Show
- [TIFF TO PPT](/slides/cpp/conversion/tiff-to-ppt/) — PowerPoint 97-2003 Presentation
- [TIFF TO PPTM](/slides/cpp/conversion/tiff-to-pptm/) — Macro-enabled Presentation File
- [TIFF TO PPTX](/slides/cpp/conversion/tiff-to-pptx/) — Open XML Presentation Format
- [TIFF TO SVG](/slides/cpp/conversion/tiff-to-svg/) — Scalable Vector Graphics
- [TIFF TO XPS](/slides/cpp/conversion/tiff-to-xps/) — XML Paper Specification
