ImageColorsForIndex

ImageColorsForIndex -- カラーインデックスからカラーの取得

説明

array imagecolorsforindex(int im, int index);

指定したカラーインデックスに対して適当な値からなる、赤、緑そして 青のキーを用いた連想配列を返します。

imagecolorat()および imagecolorexact()も参考にしてください。