img2c
img2c was started winter '07, as an alternative to SebHoll's software for Windows that does the same thing. img2c is written i C++ using the Qt library for GUI and image operations.
Downloading and compiling
img2c has no official release, but its source code can still be downloaded with SVN:
svn co https://fxsdk.svn.sourceforge.net/svnroot/fxsdk/img2c/trunk img2c
Compilation The source code has to be compiled before usage. Qt, gcc and make are required. Enter the img2c directory and execute:
qmake -project
qmake
make
Now run img2c with ./img2c
Usage
The first thing you do, is to open the image you want to create code from. Do this by clicking the "Open" button. img2c handles most usual image formats, including PNG, JPG and BMP. When the file is loaded, some code is generated with the default settings. If you want to change the number of buffers (shades) to use, you can do so in the combobox next to the Open-button. The C-code is generated and displayed for every step.