BMP is common in the Windows environment.
Simple encoding:
encode
decode gives an image object, _decode gives a mapping in the format
"type":"image/bmp", "image":image object, "colortable":colortable object (if applicable)"xsize":int, "ysize":int, "compression":int, "bpp":int, "windows":int,
option is a mapping that may contain:
"colortable": Image.Colortable - palette "bpp": 1|4|8|24 - force this many bits per pixel "rle": 0|1 - run-length encode (default is 0)
argument(s) | description |
object image | Source image. |
object colortable | Colortable object, shortcut for "colortable" in options. |