Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents from any .NET(C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Tue May 17, 2016 5:12 am

I'm using different images as background for the slides so I'd like to make the text boxes /rectangle border transparent/no color - regardless of the specific background image color Kindly guide me how to do that.

Thank you in advance!

kdr13
 
Posts: 71
Joined: Fri Apr 15, 2016 4:35 pm

Tue May 17, 2016 6:53 am

Hi,

Please try the following code.
Code: Select all
                RectangleF rect = new RectangleF(0, 0, presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height);
                presentation.Slides[0].SlideBackground.Fill.FillType = FillFormatType.Picture;

                IEmbedImage image = presentation.Slides[0].Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageFile, rect);
                image.Line.FillFormat.FillType = FillFormatType.None;
                presentation.Slides[0].SlideBackground.Fill.PictureFill.Picture.EmbedImage = image as IImageData;


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2437
Joined: Wed Jun 27, 2012 8:50 am

Tue May 17, 2016 11:08 am

Thank you! I was able to fix that

kdr13
 
Posts: 71
Joined: Fri Apr 15, 2016 4:35 pm

Wed May 18, 2016 1:54 am

Hi,

Welcome to write to us again if you have further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2437
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Presentation