I am looking to convert an image file to an array of 24-bit RGB values. To simplify things, I will only concentrate on uncompressed formats like PNG or bitmap.
The idea is to the use that array in code to print an image to screen. This can be 32-bit RGB but I will only use RRGGBB values and discount the alpha channel.
I've searched around and there's an online converter to do this (https://littlevgl.com/image-to-c-array) but I am looking to do this on the fly.
Any help appreciated.