Sfairadora

  • Reference Guide

get_palette

get_palette(bitmap)
For the bitmap (the type Bitmap) specified as the parameter, the function returns its palette. Only images with 8 or less bits per pixel have a palette. The palette defines the relation between the pixel values and the color displayed. The function returns a sequence of colors (the type Seq(Color)).
If the bitmap is monochrome or has more than 8 bits per pixel, an error is returned.

See Also