Best way to convert bmp to byte array

Discussing about enhancement of our Arduino libraries
protomor
Posts: 99
Joined: Wed Oct 14, 2015 9:17 am

Best way to convert bmp to byte array

Postby protomor » Fri Oct 16, 2015 5:31 am

I noticed the main background of the obd2 mega logger is a bmp converted to a char array. I'd like to know how to best convert a regular old bmp into this format without coding something from scratch. I can't find documentation anywhere.

onche
Posts: 20
Joined: Thu Sep 24, 2015 7:00 am

Re: Best way to convert bmp to byte array

Postby onche » Tue Jul 05, 2016 6:10 pm

Bumping this, I would like to know also
Thanks

protomor
Posts: 99
Joined: Wed Oct 14, 2015 9:17 am

Re: Best way to convert bmp to byte array

Postby protomor » Tue Dec 06, 2016 2:53 am

I forget how I did it but the conversion was very time consuming and annoying. I wound up coding it so the bmp was read through an SD card so that conversion wasn't necessary. The file space on the Arduino itself is far too precious to be spent on bitmaps.

protomor
Posts: 99
Joined: Wed Oct 14, 2015 9:17 am

Re: Best way to convert bmp to byte array

Postby protomor » Thu Dec 22, 2016 3:38 am

Sorry to edit this, I took a png, converted it to a raw file using this page (http://www.rinkydinkelectronics.com/t_i ... ter565.php) and loaded it from an external SD card.

protomor
Posts: 99
Joined: Wed Oct 14, 2015 9:17 am

Re: Best way to convert bmp to byte array

Postby protomor » Fri Aug 18, 2017 8:27 pm

I tried that code a long while ago. Never got it working well enough. I'm probably not smart enough to know where I went wrong lol. I hope the rinky dink website doesn't go down anytime soon.


Return to “Freematics Arduino Libraries”

Who is online

Users browsing this forum: No registered users and 1 guest