首页/ 接口索引/ 效果

shape.CreatePerspective()

透视:把平面对象拉成近大远小的梯形,贴到墙面、包装侧面的效果。

签名

shape.CreatePerspective()

说明

透视:把平面对象拉成近大远小的梯形,贴到墙面、包装侧面的效果。

Python 示例(可直接运行)

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

try:
    eff = shape.CreatePerspective()
    print("透视已建立,效果类型:", eff.Type)
except Exception as e:
    print("透视建立失败:", e)

关于本类:效果

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

同类其他接口