-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color bitmap drawing #45
Comments
If you want to attempt to do this, please make the code changes and create a pull request. Thanks! |
was just looking for this exact feature. this would be really great to have so that you don't have to load up an entire gfx library and an SD library or something if all you need to do is define the color bitmap in memory and draw it. you could even procedurally draw the color bitmap in memory as well. |
just an update here... i think this DOES exist but perhaps it is just not documented? In the TFT_22_ILI9225.cpp file I see a few functions like this defined:
|
Just looked at this again after the recent comment, @lordmundi does the GIMP export look like this? /* GIMP RGBA C-Source image dump (Cassandra.c) */
static const struct {
guint width;
guint height;
guint bytes_per_pixel; /* 2:RGB16, 3:RGB, 4:RGBA */
guint8 pixel_data[300 * 549 * 4 + 1];
} gimp_image = {
300, 549, 4,
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
...
,}; |
Hi there, i'm trying to draw a color image on the screen with some drawBitmap variants. I noticed that it takes a 2D matrix, but it might be useful to have a version with takes a single array (of size wh2). For example in GIMP you can save a file in C format and it outputs a ready made 16 bit 5,6,5 array.
Should be trivial to implement.
Thanks!
The text was updated successfully, but these errors were encountered: