adafruit_imageload
¶
Load pixel values (indices or colors) into a bitmap and colors into a palette.
- Author(s): Scott Shawcroft
-
adafruit_imageload.
load
(filename, *, bitmap=None, palette=None)¶ Load pixel values (indices or colors) into a bitmap and colors into a palette.
bitmap is the desired type. It must take width, height and color_depth in the constructor. It must also have a _load_row method to load a row’s worth of pixel data.
palette is the desired pallete type. The constructor should take the number of colors and support assignment to indices via [].
adafruit_imageload.bmp
¶
Load pixel values (indices or colors) into a bitmap and colors into a palette from a BMP file.
- Author(s): Scott Shawcroft
adafruit_imageload.bmp.indexed
¶
Load pixel values (indices or colors) into a bitmap and colors into a palette from an indexed BMP.
- Author(s): Scott Shawcroft