a small fast tool to convert a png file into a C file that can be embedeed. It has been taken from http://zarb.org/~gc/html/libpng.html and customized to my needs.
Requierements: libpng
make should build the tool.
gcc png2c.c -lpng -o png2c
./png2c tests/tux.png deleteme.png
Install from the gnuwin32 project:
- zlib (developer package)
- libpng
- popt
Set the global envionment variable GNUWIN32 to the root where you installed gnuwin32 packages. This must be the directory that contains the "lib", "include", "bin" subdisectories.
Then you should be able to build the visual studio project provided.