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_emptybool读取获取是否为空。
IsEmptybool读取获取是否为空。
EmptyOptional["Size"]读取获取空的。
width``读取获取宽度。
height``读取获取高度。

方法

签名描述
empty()在此 Size 实例上调用 empty。
__init__(width: int, height: int)Calls init在此 Size 实例上的 (width, height)。
equals(other) → bool在此 Size 实例上调用 equals(other)。

另请参阅

 中文