PolyNode
概述
PolyNode 是 Aspose.Page FOSS 中用于 Python 的一个类。
此类提供 2 个方法,用于在 Python 程序中处理 PolyNode 对象。可用的方法包括:__init__、add_child。在安装了 Aspose.Page FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:child_count、childs、contour、index、is_hole、is_open,以及另外 2 个。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
is_hole | bool | 读取 | 获取 is hole。 |
contour | List[IntPoint] | 读取 | 获取轮廓。 |
child_count | int | 读取 | 获取子节点计数。 |
parent | Optional["PolyNode"] | 读取 | 获取父节点。 |
polygon | List[IntPoint] | 读取 | 获取多边形。 |
index | int | 读取 | 获取索引。 |
childs | List["PolyNode"] | 读取 | 获取子节点。 |
is_open | bool | 读取 | 获取是否打开。 |
方法
| 签名 | 描述 |
|---|---|
__init__() | |
add_child(child: "PolyNode") |