ColorData
Overview
ColorData is a class in Aspose.Psd FOSS for Python.
Stores the PSD Color Mode Data section as raw bytes plus mode‑aware parsed
structure when available.
This class declares 5 methods for ColorData objects in Python programs.
Available methods include: __init__, empty, load, save, to_public_info.
Public members are accessible to any Python application after installing the Aspose.Psd FOSS for Python package.
Properties: indexed_palette, kind, raw_data.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
kind | PsdColorDataKind | Read | Gets the kind. |
raw_data | bytes | Read | Gets the raw data. |
indexed_palette | Optional[IndexedColorPalette] | Read | Gets the indexed palette. |
Methods
| Signature | Description |
|---|---|
__init__(raw_data: bytes, kind: PsdColorDataKind, indexed_palette: Optional[IndexedColorPalette]) | Calls init(raw_data, kind, indexed_palette) on this ColorData instance. |
empty() → "ColorData" | Calls empty on this ColorData instance. |
load(reader: BigEndianReader, color_mode: ColorModes) → "ColorData" | Calls load(reader, color_mode) on this ColorData instance. |
save(writer: BigEndianWriter) | Calls save(writer) on this ColorData instance. |
to_public_info() → PsdColorDataInfo | Calls to_public_info on this ColorData instance. |