Encode tone indices and their palette as a BMP. The palette must fit the bit depth: up to 2 colours at 1 bit, 16 at 4, 256 at 8.
Encode tone indices and their palette as a BMP. The palette must fit the bit depth: up to 2 colours at 1 bit, 16 at 4, 256 at 8.