int imagecolorat
Returns the index of the color of the pixel at the specified location in the image.
See also imagecolorset() and imagecolorsforindex().