---
Product: psd
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/python/imagedatastructure
---

# ImageDataStructure

## Overview

`ImageDataStructure` is a class in Aspose.PSD FOSS for Python.

Describes the validated structural layout of the PSD Image Data payload.

This class declares 5 methods for ImageDataStructure objects in Python programs.
Available methods include: `__init__`, `create_raw`, `create_rle`, `create_unknown`, `create_zip`.
Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package.
Properties: `compressed_payload_length`, `kind`, `row_byte_counts`, `row_length_field_size`, `uses_prediction`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `kind` | - | Read | Gets the kind. |
| `row_length_field_size` | - | Read | Gets the row length field size. |
| `row_byte_counts` | - | Read | Gets the row byte counts. |
| `compressed_payload_length` | - | Read | Gets the compressed payload length. |
| `uses_prediction` | - | Read | Gets the uses prediction. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(kind, row_length_field_size, row_byte_counts, compressed_payload_length, uses_prediction)` | Calls __init__(kind, row_length_field_size, row_byte_counts, compressed_payload_length, uses_prediction) on this ImageDataStructure instance. |
| `create_raw(payload_length)` | Create a structure descriptor for raw image data. |
| `create_rle(row_byte_counts, row_length_field_size, compressed_payload_length)` | Create a structure descriptor for RLE image data. |
| `create_zip(payload_length, uses_prediction)` | Create a structure descriptor for ZIP-based image data. |
| `create_unknown(payload_length)` | Create a structure descriptor for unsupported compression values. |

## See Also

- [Aspose.PSD for Python — Enterprise API Reference](https://reference.aspose.com/psd/python-net/)