вопрос в продолжение...
из мануала:
imagecolorat — Get the index of the color of a pixel
int imagecolorat ( resource $image , int $x , int $y )
где -
$image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
а как узнать цвет пиксела готовой картинки ($image - имя файла), а не созданной функцией imagecreatetruecolor() ?