I would like to create a new 24-bit .bmp file and save it to the SD card connected to Arduino TFT LCD.
I have the required header information and a 2D array containing the RGB value of each pixel. I am unable to figure out how to start with creating a new .bmp file and how to populate its header and pixel data with my header data and pixel data.
Are there any specific methods for dealing with bitmaps? Which libraries do I need to include? I'm aware of how to get a .bmp displayed over the Arduino TFT. I'm quite clueless regarding creating the bitmap.