imagecolorat

(PHP 3, PHP 4 >= 4.0.0)

imagecolorat -- Get the index of the color of a pixel

Description

int imagecolorat ( resource image, int x, int y)

Returns the index of the color of the pixel at the specified location in the image specified by image.

See also imagecolorset() and imagecolorsforindex().