我想用C#语言在幻灯片中设置背景图片
示例:
private void backgraund_image_Click(object sender, RibbonControlEventArgs e)
{
PowerPoint._Application currentPPT = TestAddIn.Globals.ThisAddIn.Application;
PowerPoint.Slides slides;
slides = currentPPT.ActivePresentation.Slides;/* take all slides */
// want set background image -> global::TestAddIn.Properties.Resources.image_test ( it is System.Drawing.Bitmap )
return;
}
我找到方法
slides[1].Background.Fill.UserPicture(/* input path image */);
但是我只能接受(System.Drawing.Bitmap
)
我该怎么做? 请帮我解决这个问题。 预先谢谢你。