ImageColorAt

ImageColorAt -- ピクセルの色のインデックスを取得

説明

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

画像上の特定位置にあるピクセルの色のインデックスを返します。

imagecolorsetおよび imagecolorsforindexも参考にしてください。