Array to images?

I'm fairly new to c++ and I've got a big array of int's that I want to use as the Red(or green/blue) value of an image (gif, png, anything is ok.) I found a nice lib called PNG writer, but I cant get it to install. I have to clue where to start on this. Also, it has to work on Linux.
Which distro do you have?
You may also look for libpng http://www.libpng.org/pub/png/libpng.html
I'm using ubuntu 9.10 64 bit.

is there a simpler way, or better documentation?
Last edited on
On Ubuntu 9.10, Synaptic shows me these packages: libpngwriter0c2, libpngwriter0-dev
They seem to be the library you were looking for

BTW libpng packages ( libpng12-0 and libpng12-dev ) are supported by Canonical while those of pngwriter are not
In file included from /usr/local/include/pngwriter.h:58,
from ttt.cpp:1:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
In file included from ttt.cpp:1:
/usr/local/include/pngwriter.h:59:10: error: #include expects "FILENAME" or <FILENAME>
In file included from ttt.cpp:1:
/usr/local/include/pngwriter.h:125: error: ‘FT_Bitmap’ has not been declared
/usr/local/include/pngwriter.h:126: error: ‘FT_Bitmap’ has not been declared

is what I get from trying to compile the example with libpngwriter0c2, libpngwriter0-dev installed
Topic archived. No new replies allowed.