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

NameTypeAccessDescription
structureImageDataStructureReadGets the parsed structural interpretation of the payload.
compressionCompressionMethodReadGets the stored compression method.
raw_databytearrayReadGets the raw image data payload after the compression field.

Methods

SignatureDescription
__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() → PsdImageDataInfoCreates a read-only public summary of the parsed merged image data structure.

See Also