Best way to convert bmp to byte array

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
protomor
Posts: 99
Joined: Wed Oct 14, 2015 9:17 am

Best way to convert bmp to byte array

Post by protomor »

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

Post by onche »

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

Post by protomor »

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

Post by protomor »

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

Post by protomor »

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.
Post Reply