Edit in GitHubLog an issue

PathPoint

代表一个路径段的锚点和控制柄端点。每个点(锚点、左方向的 点)是一个包含X和Y位置坐标的数组。

  • 使用 PathPoint 对象来检索描述现有路径段的点的信息。这些 属性是只读的。访问 PathPoint 对象,并通过 SubPathItem.pathPoints 属性

  • 使用 PathPointInfo with PathItems.add() 来创建路径点。这些属性是可写的。

    对于直线段(非曲线)的路径,所有三个点的坐标都是相同的。对于弯曲的 线段,其坐标是不同的。锚点与左或右方向点之间的差异决定了曲线的弧度。 的差值决定了曲线的弧度。使用左方向的点可以使曲线 "向外 "弯曲或 使其凸起;或使用右方向点使曲线 "向内 "弯曲或使其凹陷。

Added in Photoshop 23.3

Properties

名称类型访问最低版本描述
anchornumber[]R23.3曲线的锚点的坐标,单位是 `[horizontal, vertical]` 格式.
kindPointKindR23.3这个点在包含的路径段中扮演的角色(角或平滑)。
leftDirectionnumber[]R23.3左侧方向的端点的位置 ('in' position) , 在 `[horizontal, vertical]` 格式.
parentSubPathItemR23.3含有 SubPath 对象.
rightDirectionnumber[]R23.3右侧方向的端点的位置 ('out' position) , 在 `[horizontal, vertical]` 格式.
typenamestringR23.3被引用对象的类名: "PathPoint".
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.