adafruit-circuitpython-imageload


Nameadafruit-circuitpython-imageload JSON
Version 1.20.2 PyPI version JSON
download
home_page
SummaryDisplays text using CircuitPython's displayio.
upload_time2023-12-09 17:45:12
maintainer
docs_urlNone
author
requires_python
licenseMIT
keywords adafruit blinka circuitpython micropython bitmap fonts text display tft lcd displayio imageload image
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-imageload/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/imageload/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad/actions/
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

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.
<https://learn.adafruit.com/creating-your-first-tilemap-game-with-circuitpython/indexed-bmp-graphics>`_

Usage Example
=============

.. code-block:: python

    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 <https://docs.circuitpython.org/projects/imageload/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "adafruit-circuitpython-imageload",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adafruit,blinka,circuitpython,micropython,bitmap,fonts,text,display,tft,lcd,displayio,imageload,image",
    "author": "",
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/ec/e9/a01eba3ee951ca35550b1d9befc6e000228e1d4735ab332401967645e9a4/adafruit-circuitpython-imageload-1.20.2.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-imageload/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/imageload/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\nThis library decodes an image file into new bitmap and palette objects of the provided type. It's\ndesigned to load code needed during decoding as needed. This is meant to minimize the memory\noverhead of the decoding code.\n\nOnly 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.\n<https://learn.adafruit.com/creating-your-first-tilemap-game-with-circuitpython/indexed-bmp-graphics>`_\n\nUsage Example\n=============\n\n.. code-block:: python\n\n    import board\n    import displayio\n    import adafruit_imageload\n\n    image, palette = adafruit_imageload.load(\n        \"images/4bit.bmp\", bitmap=displayio.Bitmap, palette=displayio.Palette\n    )\n    tile_grid = displayio.TileGrid(image, pixel_shader=palette)\n\n    group = displayio.Group()\n    group.append(tile_grid)\n    board.DISPLAY.root_group = group\n    while True:\n        pass\n\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/imageload/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Displays text using CircuitPython's displayio.",
    "version": "1.20.2",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad"
    },
    "split_keywords": [
        "adafruit",
        "blinka",
        "circuitpython",
        "micropython",
        "bitmap",
        "fonts",
        "text",
        "display",
        "tft",
        "lcd",
        "displayio",
        "imageload",
        "image"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "63e82e38ffb8f938f695552b8716ba3fec6044d3b3400a56afd2b0b71eeabe55",
                "md5": "f1fb30f8b75e7f2c6595318739c31c2a",
                "sha256": "2368d0c8fb66aa25940901bff9ead87b4f30e50dc2ef8af37eb349c1d67dc6e5"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_imageload-1.20.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f1fb30f8b75e7f2c6595318739c31c2a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 26440,
            "upload_time": "2023-12-09T17:45:10",
            "upload_time_iso_8601": "2023-12-09T17:45:10.716250Z",
            "url": "https://files.pythonhosted.org/packages/63/e8/2e38ffb8f938f695552b8716ba3fec6044d3b3400a56afd2b0b71eeabe55/adafruit_circuitpython_imageload-1.20.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ece9a01eba3ee951ca35550b1d9befc6e000228e1d4735ab332401967645e9a4",
                "md5": "e35dc629e937e80a96cfe9e8800156be",
                "sha256": "f1052eeecdee6a89ea3cf4c65fb60728dcfb83a4ec06daf2b98c47dc3044b2c6"
            },
            "downloads": -1,
            "filename": "adafruit-circuitpython-imageload-1.20.2.tar.gz",
            "has_sig": false,
            "md5_digest": "e35dc629e937e80a96cfe9e8800156be",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 74508,
            "upload_time": "2023-12-09T17:45:12",
            "upload_time_iso_8601": "2023-12-09T17:45:12.570206Z",
            "url": "https://files.pythonhosted.org/packages/ec/e9/a01eba3ee951ca35550b1d9befc6e000228e1d4735ab332401967645e9a4/adafruit-circuitpython-imageload-1.20.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-09 17:45:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_ImageLoad",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-imageload"
}
        
Elapsed time: 0.14927s