LoadPalette()

Syntax

Result = LoadPalette(#Palette, FileName$)
Description
Load an palette from a standard BMP file (256 colors pictures only). If #PB_Any is used as '#Palette' parameter, the new palette number will be returned as 'Result'. The palette is initialized with the value found inside the file. If the palette has been correctly loaded, the 'Result' value is not 0, else an error has happened. The previous #Palette object is automatically freed.

Supported OS

Windows, AmigaOS, Linux

<- IsPalette() - Palette Index - SetPaletteColor() ->