FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add drawBitmap method to ColorGraphicsDisplay interface by mcbridejc · Pull Request #831 · modm-io/modm · GitHub

/ modm Public

Add drawBitmap method to ColorGraphicsDisplay interface - #831

Draft
mcbridejc wants to merge 1 commit into
modm-io:developfrom
mcbridejc:add-draw-bitmap-to-interface
Draft

mcbridejc wants to merge 1 commit into
modm-io:developfrom
mcbridejc:add-draw-bitmap-to-interface

Conversation

Copy link
Copy Markdown
Contributor

Hey want to solicit thoughts on this change, or something like it, @TomSaw, @salkinium.

The ILI9341 driver offers a drawBitmap method, which can take a an Rgb565 bitmap as input, but this is not in the ColorGraphicsDisplay interface, and that's a problem because the ILI9341 has many template arguments so it's awkward to pass a reference to it.

Should we just add this virtual method to ColorGraphicsDisplay?

Copy link
Copy Markdown
Member

I guess? I don't really have an overview anymore over the graphics API, so I'm delegating this to our expert @TomSaw

TomSaw commented Feb 22, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

Hey @mcbridejc. I'm sitting on a complete rewrite of the graphic APIs since 2021.
The new architecture is quite flexible and should solve your issue:
It allows copying+converting a bitmap in any imaginable colorspace (f.e. RGB565) stored somewhere (f.e. in flash memory) to any other writable memory in any imaginable colorspace, be it the local RAM or the displays CGRAM.

See these these dependent PRs:

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL