Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.
Mon Mar 09, 2015 4:21 pm
Can I create a white rectangle with NO lines and set the transparency of that to 38%?
-
whittenmike807
-
- Posts: 7
- Joined: Thu Mar 05, 2015 9:23 pm
Tue Mar 10, 2015 9:37 am
Hello,
Thanks for your inquiry.
Yes, you can. Please check the following code:
- Code: Select all
Presentation presentation = new Presentation();
IAutoShape shape = presentation.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(50, 100, 100, 100));
shape.Fill.FillType = FillFormatType.Solid;
shape.Fill.SolidColor.Color = Color.FromArgb(158, Color.White);
shape.Line.FillType = FillFormatType.None;
presentation.SaveToFile("ppt.pptx", FileFormat.Pptx2007);
If there are any questions, welcome to get it back to us.
Best Regards,
Betsy
E-iceblue support team
-
Betsy
-
- Posts: 802
- Joined: Mon Jan 19, 2015 6:14 am