# Add Watermark to PPT Presentations using C++

> Add text or image watermarks to PPT presentations in C++. Use Aspose.Slides for C++ to place watermarks on presentation slides.

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



## Add Watermark to PPT Presentation via C++

Aspose.Slides for C++ lets you add text or image watermarks to PPT presentations. Add a watermark shape to the master slide with `AddAutoShape`, add text with `AddTextFrame`, or fill the shape with an image loaded through `File::ReadAllBytes` and `AddImage`.

### Add Text Watermark to PPT using C++

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.ppt");
auto masterSlide = presentation->get_Master(0);
auto watermarkShape = masterSlide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 100, 100, 400, 80);

watermarkShape->AddTextFrame(u"Watermark");
presentation->Save(u"watermarked-presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();
```

### Add Image Watermark to PPT Presentation using C++

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.ppt");
auto masterSlide = presentation->get_Master(0);
auto watermarkShape = masterSlide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 100, 100, 400, 200);

auto imageData = File::ReadAllBytes(u"watermark.png");
auto watermarkImage = presentation->get_Images()->AddImage(imageData);

watermarkShape->get_FillFormat()->set_FillType(FillType::Picture);
watermarkShape->get_FillFormat()->get_PictureFillFormat()->get_Picture()->set_Image(watermarkImage);
watermarkShape->get_FillFormat()->get_PictureFillFormat()->set_PictureFillMode(PictureFillMode::Stretch);

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

## How to Add Watermark to PPT via C++

These are the steps to add a text watermark to PPT files.

Load the PPT file with the `Presentation` class.

Select the master slide from the `Presentation::get_Masters` collection.

Add a watermark shape with the `AddAutoShape` method.

Add watermark text with the `AddTextFrame` method or set a picture fill with `AddImage`.

Save the watermarked file with `SaveFormat::Ppt`.

## Other Supported Formats
