YouTip LogoYouTip

Php Imagecolorsforindex

# PHP imagecolorsforindex - Get the Color of a Given Index [![Image 3: PHP Image Processing](#)PHP Image Processing](#) imagecolorsforindex β€” Get the color of a given index. ### Syntax array imagecolorsforindex ( resource $image , int $index ) This function returns an associative array with keys red, green, blue, and alpha, containing the corresponding values for the specified color index. ### Example The output of the above example is similar to: Array( => 195 => 223 => 165 => 64) ### Related Articles Gets the color index of a pixel. Gets the index of the specified color. [![Image 4: PHP Image Processing](#)PHP Image Processing](#)
← Angularjs ApiIonic Tutorial β†’