CK_Object | +----CK_Palette
A CK_Palette represents a 256-color palette stored in an RGBQUAD array.
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.