ImageColorAt

ImageColorAt -- get the index of the color of a pixel

Description

int imagecolorat(int im, int x, int y);

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

See also imagecolorset() and imagecolorsforindex().