-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
BMP with indexed colors ? #941
Comments
An interesting project. I have tinkered with indexed colours BMP files. The code is here. In that example the image is a greyscale one but the pallette retrieval is the same process. If you think you will not be able to adapt this code then upload an image example (or provide a link to one) and I will look at the format. I think indexed BMP files are quite rare these days so I assume the images are quite old in origin. |
Hello Bodmer, I did have a look at the code, but I don't know what to do with the instructions containing an object called "frame"... Unfortunate it's not an old system. In the modelrailroad community, manufacturers still keep using "old formats" :-( It would be nice to get a modified TFT_eFEX.h and TFT_eFEX.CPP, that includes 2 methods. (one for the 8-bit, and one for the 16/24-bit ... In our own software we do use RGB images) Thank you for your help in advance. (wow, and thanks for the quick response, and this on a sunday !!!) Best regards, |
The attached sketch contains the function you need to finsh your project. I tested with one of your examples so it seems to work OK. |
Hi Bodmer, Works like a charm now :-) thank you, |
issue closed ! |
Great, looking forward to seeing the movie. |
Hello,
I really like the TFT_eSPI lib and also enjoy the TFT_eFEX :-)
I'm currently building an opensource modelrailroad project with the help of this library.
However, I have 1 issue left, to finish my current project ...
I need to download images from the internet, from a loco-image-filefault to SPIFFs. This works, but I'm unable to show the images.
They are in BMP-format, but with indexed colors. (Downloading works fine, when I retrieve the images from SPIFFs to my PC,
I can view them with Gimps and other image-viewers)
I tried to modify the code that shows the BMP files on screen (ILI9488 in my case), but I only get some gray imagebox,
with some random noise in it. (the dimensions in screen are however correct)
Can anyone help me out with this ? There is no way to retrieve the images in another format but BMP indexed colors, because I don't own the loco-image-filevault.
(I also can't find another Arduino library that takes care of indexed colors images, everybody seems only be interested in 24-bit or 16-bit images)
Please help !
best regards,
Kris
https://www.digitalplayground.be
The text was updated successfully, but these errors were encountered: