LoadPalette()

Syntax

Result = LoadPalette(#Palette, FileName$)

Description

Load an palette from a standard BMP file (256 colors pictures only). 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

Palette - Index