(PHP 3, PHP 4 >= 4.0b1)
int imagecolorat (int im, int x, int y)
int imagecolorat
Returns the index of the color of the pixel at the specified location in the image.
See also imagecolorset() and imagecolorsforindex().