首页/ 接口索引/ 效果

shape.CreatePushPullDistortion() / CreateZipperDistortion() / CreateTwisterDistortion()

三种变形:推拉(膨胀收缩)、拉链(锯齿边)、扭转(螺旋)。做异形边框、搞怪字体。

签名

shape.CreatePushPullDistortion() / CreateZipperDistortion() / CreateTwisterDistortion()

说明

三种变形:推拉(膨胀收缩)、拉链(锯齿边)、扭转(螺旋)。做异形边框、搞怪字体。

Python 示例(可直接运行)

依赖 pywin32。示例假定 app / doc / page / layer 已就绪。 见「连接与初始化」
Python
shape = app.ActiveSelectionRange(1)

try:
    eff1 = shape.CreatePushPullDistortion()         # 推拉变形
    print("推拉变形 OK")
except Exception as e:
    print("推拉失败:", e)

try:
    eff2 = shape.CreateZipperDistortion()           # 拉链变形
    print("拉链变形 OK")
except Exception as e:
    print("拉链失败:", e)

关于本类:效果

这一块在 VBA 里是被包装过的:Shape 上有 CreateXxx 系列方法,调用后返回一个 Effect 对象,具体参数再去 Effect 的 Blend / Contour / DropShadow / Extrude / Lens / Envelope / Perspective / Distortion 子对象上改。

同类其他接口