csharp SetBackgroundImageForChartPowerPoint.cs

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp 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();
}

以上是关于csharp SetBackgroundImageForChartPowerPoint.cs的主要内容,如果未能解决你的问题,请参考以下文章