我一直在尝试在 powerpoint 中创建水印我在下面有一个代码,我现在可以在其中添加图片我如何为图片创建透明度,使其看起来像水印
private void watermark_Click(object sender, RibbonControlEventArgs e)
{
PowerPoint.Application ppApp = Globals.ThisAddIn.Application;
PowerPoint.SlideRange ppslr = ppApp.ActiveWindow.Selection.SlideRange;
//ppApp.ActivePresentation.Slides.InsertFromFile("NepaSlide.pptx",2, 1,1);
//PowerPoint.ShapeRange ppShR = ppApp.ActiveWindow.Selection.ShapeRange;
int count= ppslr.Shapes.Count;
PowerPoint.Shape shape = ppslr.Shapes[count];
ppslr.Shapes.AddPicture("N-symbol.png",
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
shape.Left, shape.Top, shape.Width, shape.Height);
}