Product Home Class IndexDownload

CK_Palette

CK_Object
   |
   +----CK_Palette

A CK_Palette represents a 256-color palette stored in an RGBQUAD array.


Factory Methods

copy
Create a new CK_Palette by copying an existing CK_Palette.
create
Create a new CK_Palette from a serialized CK_Palette.
createRGB
Create a new CK_Palette from a 256-element RGBQUAD array.

Public Methods

getPalette
Returns a const pointer to the RGBQUAD array.
serialize
Serializes the palette to a file.

Creates a CK_Palette by copying an existing CK_Palette.

Return Value
Returns a pointer to the created CK_Palette.

Parameters

pal
The palette to be copied.

Creates a CK_Palette from a serialized CK_Palette.

Return Value
Returns a pointer to the created CK_Palette.

Parameters

fp
File pointer pointing to the beginning of a serialized CK_Palette.

Creates a CK_Palette from a 256-element RGBQUAD array.

Return Value
Returns a pointer to the created CK_Palette.

Parameters

rgb
A 256-element RGBQUAD array containing the palette colors.

Returns a const pointer to the RGBQUAD array containing the palette colors.

Serializes the palette to a file.

Parameters

fp
An open file pointer used for writing the palette.