Can the GD library do this?
I have an array of numbers (which I shall be manipulating
server-side), which I wish to convert into an image. The elements of
the array are essentially the 1D subscripts of a 256*256 image.
I've been looking at the GD library functions all day, but I can't
seem to translate the array to a jpeg or png or whatever. (The GD
library functions are working though.) It seems that creating an image
from another image is easy, but not from the raw data.
How can I make a greyscale image out of this array, scaled to the
maximum pixel?
Dave Higgins
PHP 4.3.4, Apache(Unix)1.3.22, GD 2.0.15