First of all, I'd like to say thankyou for making such a useful program. I use it a lot to convert bitmap files to C byte arrays for use in embedded graphics projects.
It would be incredibly useful to have some kind of template system where you could make a txt file template with placeholders so that when you exported a C file, the placeholders were just replaced by the exported data. Eg:
at the moment, the exported C file looks something like this:
Code: Select all
/* FileName.bmp (3/12/2013 3:06:04 PM)
StartOffset: 00000000, EndOffset: 00008C05, Length: 00008C06 */
const char RawData[35846] = {
0x42, 0x4D, 0x06, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x04,
...
};
If I could have a template file that looked like this:
Code: Select all
/* $FileName$ (3/12/2013 3:06:04 PM)
StartOffset: $StartOffset$, EndOffset: $EndOffset$, Length: $Length$ */
#include "Types.h"
const u8 RawData[$NumberOfBytes$] __attribute__ ((section ("EXTFLASH") )) = {
$ByteArray$
};
Hopefully that makes some kind of sense!
Many thanks,
John.