ImageColorsForIndex

(PHP3 , PHP4 )

ImageColorsForIndex -- Get the colors for an index

Description

array imagecolorsforindex (int im, int index)

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().