ColorData
Overview
ColorData is a class in Aspose.PSD FOSS for Java.
Represents the Color Mode Data section of a PSD file.
This class declares 6 methods for ColorData objects in Java programs.
Available methods include: getIndexedPalette, getKind, getRawData, load, save, toPublicInfo.
Public members are accessible to any Java application after installing the Aspose.PSD FOSS for Java package.
Properties: EMPTY, indexedPalette, kind, rawData.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
kind | PsdColorDataKind | Read | Gets the kind. |
indexedPalette | IndexedColorPalette | Read | Gets the indexed palette. |
rawData | byte[] | Read | Gets the raw data. |
EMPTY | ColorData | Read | Gets the empty. |
Methods
| Signature | Description |
|---|---|
load(reader: BigEndianReader, colorMode: ColorModes) → ColorData | Loads the Color Mode Data section from the provided reader. |
getKind() → PsdColorDataKind | Returns the kind. |
getIndexedPalette() → IndexedColorPalette | Returns the indexed palette. |
getRawData() → byte[] | Returns the raw data. |
toPublicInfo() → PsdColorDataInfo | Converts this ColorData instance to a public PsdColorDataInfo instance. |
save(writer: BigEndianWriter) | Saves the Color Mode Data section to the provided writer. |