PsdImageDocumentState
概述
PsdImageDocumentState 是 Aspose.Psd FOSS 为 Python 提供的一个类。
存储由 PsdImage 使用的已解析 PSD/PSB 文档章节。
此类在 Python 程序中为 PsdImageDocumentState 对象声明了 3 个方法。可用的方法包括:__init__、empty、with_layer_and_mask_section。在安装了 Aspose.Psd FOSS for Python 包后,公共成员可供任何 Python 应用程序访问。属性:ColorData、Empty、Header、ImageData、ImageResourcesSection、color_data,以及另外 4 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Header | `PsdHeader | None` | 读取 |
ColorData | ColorData | 读取 | 获取颜色数据。 |
ImageResourcesSection | ImageResourcesSection | 读取 | 获取图像资源部分。 |
layer_and_mask_section | LayerAndMaskSection | 读取 | 获取图层和蒙版部分。 |
ImageData | ImageData | 读取 | 获取图像数据。 |
Empty | "PsdImageDocumentState" | 读取 | 获取空的。 |
header | `` | 读取 | 获取标头。 |
color_data | `` | 读取 | 获取颜色数据。 |
image_resources_section | `` | 读取 | 获取图像资源部分。 |
image_data | `` | 读取 | 获取图像数据。 |
方法
| 签名 | 描述 |
|---|---|
empty() → "PsdImageDocumentState" | 在解析 PSD/PSB 流之前,获取空的文档状态。 |
| `init(header: PsdHeader | None, color_data: ColorData, image_resources_section: ImageResourcesSection, layer_and_mask_section: LayerAndMaskSection, image_data: ImageData)` |
with_layer_and_mask_section(layer_and_mask_section: LayerAndMaskSection) → "PsdImageDocumentState" | 创建一个状态副本,其中替换了 Layer and Mask Information 部分。 |