ImageData
Overview
ImageData is a class in Aspose.Psd FOSS for Python.
Stores the PSD Image Data section as a compression header plus raw payload bytes.
This class declares 4 methods for ImageData objects in Python programs.
Available methods include: __init__, load, save, to_public_info.
Public members are accessible to any Python application after installing the Aspose.Psd FOSS for Python package.
Properties: compression, raw_data, structure.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
structure | ImageDataStructure | Read | Gets the parsed structural interpretation of the payload. |
compression | CompressionMethod | Read | Gets the stored compression method. |
raw_data | bytearray | Read | Gets the raw image data payload after the compression field. |
Methods
| Signature | Description |
|---|---|
__init__(compression: CompressionMethod, raw_data: bytearray, structure: ImageDataStructure) | Initializes a new instance of the ImageData class. |
load(reader: BigEndianReader, is_large_document: bool, height: int, channel_count: int) → "ImageData" | Loads the final Image Data section from the reader. |
save(writer: BigEndianWriter) | Writes the Image Data section to the writer. |
to_public_info() → PsdImageDataInfo | Creates a read-only public summary of the parsed merged image data structure. |