PsdImageDocumentState

PsdImageDocumentState

Overview

PsdImageDocumentState is a class in Aspose.Psd FOSS for Python.

Stores parsed PSD/PSB document sections used by PsdImage.

This class declares 3 methods for PsdImageDocumentState objects in Python programs. Available methods include: __init__, empty, with_layer_and_mask_section. Public members are accessible to any Python application after installing the Aspose.Psd FOSS for Python package. Properties: ColorData, Empty, Header, ImageData, ImageResourcesSection, color_data, and 4 more.

Properties

NameTypeAccessDescription
HeaderPsdHeader | NoneReadGets the header.
ColorDataColorDataReadGets the color data.
ImageResourcesSectionImageResourcesSectionReadGets the image resources section.
layer_and_mask_sectionLayerAndMaskSectionReadGets the layer and mask section.
ImageDataImageDataReadGets the image data.
Empty"PsdImageDocumentState"ReadGets the empty.
header``ReadGets the header.
color_data``ReadGets the color data.
image_resources_section``ReadGets the image resources section.
image_data``ReadGets the image data.

Methods

SignatureDescription
empty() → "PsdImageDocumentState"Gets an empty document state before a PSD/PSB stream has been parsed.
__init__(header: PsdHeader | None, color_data: ColorData, image_resources_section: ImageResourcesSection, layer_and_mask_section: LayerAndMaskSection, image_data: ImageData)Calls init(header, color_data, image_resources_section, layer_and_mask_section, image_data) on this PsdImageDocumentState instance.
with_layer_and_mask_section(layer_and_mask_section: LayerAndMaskSection) → "PsdImageDocumentState"Creates a state copy with a replaced Layer and Mask Information section.

See Also