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

NameTypeAccessDescription
kindPsdColorDataKindReadGets the kind.
raw_databytesReadGets the raw data.
indexed_paletteOptional[IndexedColorPalette]ReadGets the indexed palette.

Methods

SignatureDescription
__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() → PsdColorDataInfoCalls to_public_info on this ColorData instance.

See Also