Free Support Forum - aspose.com

Shape Fill Transparency

Is there support for transparency in shape fill?

I have some shapes which have a solid fill, but I've set the transparency to 50% to have a "grayed out" appearance. When the diagram is rendered, the shape fill is solid (0%).

Cheers

Dean

Hi Dean,


Thank you for your inquiry. You can control shape fill transparency level by setting FillForegndTrans and FillBkgndTrans values from 0 (completely opaque) to 1 (completely transparent). Please try these values like:

shape.Fill.FillForegndTrans.Value = 0.5;
shape.Fill.
FillBkgndTrans.Value = 0.5;

In case these properties do not help you then please share input diagram along with appropriate code snippet. We'll take a closer look and guide you accordingly.