This is the portable GD2 library from www.libgd.org. Ubuntu users: install the package 'libgd2-xpm-dev' with Synaptic. The API is described here: http://www.libgd.org/Reference