(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)
array imagecolorsforindex (int im, int index)
array imagecolorsforindex
指定したカラーインデックス index に対して適当な値からなる red、green、blue をキーとする連想配列を返します。
imagecolorat()および imagecolorexact()も参考にしてください。