RectangleF
概述
RectangleF 是 Aspose.Psd FOSS 中用于 Python 的一个类。
存储一组四个浮点数,表示矩形的位置和大小。
此类为 Python 程序中的 RectangleF 对象声明了 2 个方法。可用的方法包括:__init__、empty。在安装 Aspose.Psd FOSS for Python 包后,公共成员对任何 Python 应用程序均可访问。属性:Height、Width、X、Y、bottom、height,以及另外 7 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
X | float | 读写 | 获取或设置左上角的 x 坐标。 |
Y | float | 读写 | 获取或设置左上角的 y 坐标。 |
Width | float | 读写 | 获取或设置矩形的宽度。 |
Height | float | 读写 | 获取或设置矩形的高度。 |
bottom | float | 读取 | 获取此 RectangleF 底部边缘的 y 坐标。 |
is_empty | bool | 读取 | 获取一个值,用于指示此 RectangleF 是否没有位置或大小。 |
left | float | 读取 | 获取此 RectangleF 左边缘的 x 坐标。 |
right | float | 读取 | 获取此 RectangleF 的右边缘的 x 坐标。 |
top | float | 读取 | 获取此 RectangleF 的顶部边缘的 y 坐标。 |
x | `` | 读取 | 获取 x。 |
y | `` | 读取 | 获取 y。 |
width | `` | 读取 | 获取宽度。 |
height | `` | 读取 | 获取高度。 |
方法
| 签名 | 描述 |
|---|---|
__init__(x: float, y: float, width: float, height: float) | Calls init(x, y, width, height) 在此 RectangleF 实例上。 |
empty() → "RectangleF" | 表示一个 RectangleF 结构,其属性保持未初始化。 |