Size
概述
Size 是 Aspose.Psd FOSS 中用于 Python 的一个类。
此类为 Python 程序中的 Size 对象声明了 3 个方法。可用的方法包括:__init__、empty、equals。在安装了 Aspose.Psd FOSS for Python 包后,公共成员可供任何 Python 应用程序访问。属性:Empty、IsEmpty、height、is_empty、width。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
is_empty | bool | 读取 | 获取是否为空。 |
IsEmpty | bool | 读取 | 获取是否为空。 |
Empty | Optional["Size"] | 读取 | 获取空的。 |
width | `` | 读取 | 获取宽度。 |
height | `` | 读取 | 获取高度。 |
方法
| 签名 | 描述 |
|---|---|
empty() | 在此 Size 实例上调用 empty。 |
__init__(width: int, height: int) | Calls init在此 Size 实例上的 (width, height)。 |
equals(other) → bool | 在此 Size 实例上调用 equals(other)。 |