Point
概述
Point 是 Aspose.Psd FOSS 中针对 Python 的一个类。
Point 类提供 empty() 用于获取零点,并提供 equals(other) 用于比较坐标;其属性包括 x、y、is_empty,以及静态 Empty。
此类在 Python 程序中为 Point 对象声明了 3 个方法。可用的方法包括:__init__、empty、equals。在安装了 Aspose.Psd FOSS for Python 包后,公共成员对任何 Python 应用程序均可访问。属性:Empty、is_empty、x、y。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
is_empty | `` | 读取 | 获取是否为空。 |
Empty | Optional["Point"] | 读取 | 获取空。 |
x | `` | 读取 | 获取 x。 |
y | `` | 读取 | 获取 y。 |
方法
| 签名 | 描述 |
|---|---|
empty() | 在此 Point 实例上调用 empty。 |
__init__(x, y) | Calls init此 Point 实例上的 (x, y)。 |
equals(other) | 在此 Point 实例上调用 equals(other)。 |