Vincent Trouilliez wrote:
Thanks Joerg and Jim !

If uncompressed B&W is the format, grab ImageMagick and install.  Then do:
convert filename.jpg myfile.xbm
The XBM image format (X bitmap format) is exactly a C source file:

I tried xbm under Gimp but it produces an array of 16bit integers
rather than bytes. I will try producing the xbm file using ImageMagik
as you suggest, maybe it produces an array of bytes, worth a look !

If not, well nevermind, you and others have given me plenty enough
information and code samples to sort me out "manually" so to speak.

Thanks again everyone for all the help, I must confess I am a little overwhelmed by so many useful replies, I am lucky ! :-D

Another option that I did not seen mentioned is the srecord tools. It can convert a binary file to a C array. These tools are quite useful for manipulating all sorts of hex and binary data files.

http://srecord.sourceforge.net/

--
Galen Seitz
[email protected]


_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to