adafruit-circuitpython-imageload


Nameadafruit-circuitpython-imageload JSON
Version 1.23.5 PyPI version JSON
download
home_pageNone
SummaryDisplays text using CircuitPython's displayio.
upload_time2024-11-07 23:03:27
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
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/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

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": null,
    "name": "adafruit-circuitpython-imageload",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, bitmap, fonts, text, display, tft, lcd, displayio, imageload, image",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/60/33/0449fee39cb63ce623a6446aca20d2579eb5b144114e39f47ca9892946d6/adafruit_circuitpython_imageload-1.23.5.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/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Code Style: Ruff\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.23.5",
    "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": "00bae2629ad51b123a17e00045fbccccdfc2f16035b7201865e8928e570792f6",
                "md5": "006218efc4ca655bb84647f0f9099bdf",
                "sha256": "d5f70057e165b12c0a480be6f7e925a4a55e9a4827144ec57a671bcd2dfb0318"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_imageload-1.23.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "006218efc4ca655bb84647f0f9099bdf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 27971,
            "upload_time": "2024-11-07T23:03:25",
            "upload_time_iso_8601": "2024-11-07T23:03:25.498872Z",
            "url": "https://files.pythonhosted.org/packages/00/ba/e2629ad51b123a17e00045fbccccdfc2f16035b7201865e8928e570792f6/adafruit_circuitpython_imageload-1.23.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "60330449fee39cb63ce623a6446aca20d2579eb5b144114e39f47ca9892946d6",
                "md5": "cc84d3bfbd1274ae8f27a0bb0a7bc9d0",
                "sha256": "e2a5b9b83ae673c574c102028c2ace3347dffd1700f20f8382293609102324da"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_imageload-1.23.5.tar.gz",
            "has_sig": false,
            "md5_digest": "cc84d3bfbd1274ae8f27a0bb0a7bc9d0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 93117,
            "upload_time": "2024-11-07T23:03:27",
            "upload_time_iso_8601": "2024-11-07T23:03:27.040189Z",
            "url": "https://files.pythonhosted.org/packages/60/33/0449fee39cb63ce623a6446aca20d2579eb5b144114e39f47ca9892946d6/adafruit_circuitpython_imageload-1.23.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-07 23:03:27",
    "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.39395s