Color incorrect using image converter result. #6236
Replies: 1 comment
-
Posted at 2020-04-11 by NebbishHacker Bangle.js doesn't support 4 bit RGBA - it assumes that all 4 bit images use the Mac palette. You can see what color formats are supported here: https://www.espruino.com/Reference#l_Graphics_drawImage Posted at 2020-04-11 by Lixas It really was my issue- incorrect color format. Thak you Posted at 2020-04-14 by @gfwilliams Yep - RGBA is there to help with other devices. You could actually still draw the image in RGBA if you supplied your own palette though: http://www.espruino.com/Reference#l_Graphics_drawImage Just to add - in this sort of case I'd actually recommend you use either black and white 1 bit (or 2 bit if you want a really smooth image). While you end up with a black and white image, you can just use |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-10 by Lixas
Hello Gordon,
I don't know if I found bug, but i've encontered strage behaviour. Converted png image using https://www.espruino.com/Image+Converter
Original image is RedHeart.png [attached]
Result for converted [attached] is
Result in IDE emulator and actual device [attached] is BLUE as seen in one of the screenshots. Is it error in https://www.espruino.com/Image+Converter or something else?
My code to display picture is following:
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions