Home/ Reference/ Transparency & Blend

shape.Transparency.ApplyUniformTransparency(Value)

Even transparency across the shape, 0-100. Watermarks, tint blocks, semi-transparent color over photos — all this.

Signature

shape.Transparency.ApplyUniformTransparency(Value)

Notes

Even transparency across the shape, 0-100. Watermarks, tint blocks, semi-transparent color over photos — all this.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

shape.Transparency.ApplyUniformTransparency(50)     # 50% transparent
print("Transparency: ", shape.Transparency.Uniform)        # reads back as 50

shape.Transparency.ApplyUniformTransparency(20)     # make it lighter
print("Transparency: ", shape.Transparency.Uniform)

About this section: Transparency & Blend

Transparency & Blend — opacity and merge modes.

Other entries in this section