We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi! In the demo LCD Blinky from my MCB1700 evalboard the pictures are stored in c files e.g. Bg_16bpp_t_fh_fv.c. Anybody knows how to create a c file from my picture? Best regards Damian
I use an excel spreadsheet to generate the data value and then copy them back to my C program.
Do you really use Excel to read a graphics file?!
Although Excel is great for computing data values to go into tables, etc, I think there must be better ways to read graphics files?!
try googling "convert BMP to C source" or similar...
Hi! I used several converter programs but unfortunately the generated output files are different from the output in the example or the bmp file can't be loaded. Best regards Damian
In what way are they "different"?
Is the difference significant?
The differences are: - number of bytes in the output file - notation of the bit informations 0x01 0x0123 - number of maximal colors in the picture (depth 1/4/16/24) Best regards Damian
Write a c-program, open the bmp-file and convert it to what you want, open another file and write the image into that new file.
:-)