Displays text using CircuitPython's displayio.
Project description
Introduction
This library decodes an image file into new bitmap and palette objects of the provided type. It’s designed to load code needed during decoding as needed. This is meant to minimize the memory overhead of the decoding code.
Only certain types of bitmaps work with this library, and they often have to be exported in specific ways. To find out what types are supported and how to make them, see this learn guide page.
Usage Example
import board
import displayio
import adafruit_imageload
image, palette = adafruit_imageload.load(
"images/4bit.bmp", bitmap=displayio.Bitmap, palette=displayio.Palette
)
tile_grid = displayio.TileGrid(image, pixel_shader=palette)
group = displayio.Group()
group.append(tile_grid)
board.DISPLAY.root_group = group
while True:
pass
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for adafruit_circuitpython_imageload-1.23.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d9c7138d7ef83b5599eebe6d17d35f5593a6ae2e4ee4eabf946abd3ff33b3d |
|
MD5 | 265c6593b417afaa4fe28690206b5c9f |
|
BLAKE2b-256 | 5e107394cd236eefe5cf5f087d7eba6aaaeeb9d027665c8a53d2b95b2f22feea |
Hashes for adafruit_circuitpython_imageload-1.23.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6921ab10c1fab16e3ab4e4d05c2a23c985fbc591c6fb32dfcfa03cb3f013a4e5 |
|
MD5 | 89d2eabf55630f915b25a3b23db1a5b1 |
|
BLAKE2b-256 | fb84772a158313394953581733392b666ee5119ba8c4184afbceb46ed863aa15 |