GM_SetLayerPalette |
Sets the color palette for a given layer. The layer must be a palette-based image. The mPalette and mPaletteSize values in GM_LayerInfo_t for the layer will indicate the size and values in the current palette. You can restore the original palette for a layer by passing NULL. If you pass in less colors than in the original palette, only those colors that you provide will be updated.
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_SetLayerPalette ( GM_LayerHandle_t32 aLayer, // IN: layer to set palette for const GM_PaletteEntry_t* aNewPalette, // IN: pointer to list of palette entries to use for layer or NULL to reset palette to original palette uint32 aNumPalEntries, // IN: number of palette entries in list void* aReserved // IN: reserved for future use, must be NULL )