(PHP 3, PHP 4 >= 4.0.0)
array imagecolorsforindex (int im, int index)
array imagecolorsforindex
This returns an associative array with red, green, and blue keys that contain the appropriate values for the specified color index.
See also imagecolorat() and imagecolorexact().