Home/ Reference/ Transparency & Blend

shape.Transparency.ApplyFountainTransparency(Start, End)

Gradient transparency: one end transparent, the other not. The most natural way to fade an image into a background or soften an edge. Both values are 0-100.

Signature

shape.Transparency.ApplyFountainTransparency(Start, End)

Notes

Gradient transparency: one end transparent, the other not. The most natural way to fade an image into a background or soften an edge. Both values are 0-100.

Python example (runnable)

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

try:
    shape.Transparency.ApplyFountainTransparency(0, 100)
    # 0 = opaque at the start, 100 = clear at the end
    print("Fountain transparency applied, type: ", shape.Transparency.Type)
except Exception as e:
    print("Fountain transparency failed: ", e)

About this section: Transparency & Blend

Transparency & Blend — opacity and merge modes.

Other entries in this section