usmanazizgroupdocs
6/9/2017 - 10:06 AM

SetBackgroundImageForChartPowerPoint.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (SlidesDocument doc = Document.Load<SlidesDocument>(Utilities.MapSourceFilePath(FilePath)))
{
    doc.Slides[0].Charts[0].ImageFillFormat.BackgroundImage = new SlidesWatermarkableImage(File.ReadAllBytes(@"D:\test.png"));
    doc.Slides[0].Charts[0].ImageFillFormat.Transparency = 0.5;
    doc.Slides[0].Charts[0].ImageFillFormat.TileAsTexture = true;
    doc.Save();
}