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

NameTypeAccessDescription
kindPsdColorDataKindReadGets the kind.
indexedPaletteIndexedColorPaletteReadGets the indexed palette.
rawDatabyte[]ReadGets the raw data.
EMPTYColorDataReadGets the empty.

Methods

SignatureDescription
load(reader: BigEndianReader, colorMode: ColorModes) → ColorDataLoads the Color Mode Data section from the provided reader.
getKind() → PsdColorDataKindReturns the kind.
getIndexedPalette() → IndexedColorPaletteReturns the indexed palette.
getRawData() → byte[]Returns the raw data.
toPublicInfo() → PsdColorDataInfoConverts this ColorData instance to a public PsdColorDataInfo instance.
save(writer: BigEndianWriter)Saves the Color Mode Data section to the provided writer.

See Also