Easy Tutorial
❮ Func Misc Usleep Func Filesystem File Put Contents ❯

PHP imagecolorexact - Get the Index Value of the Specified Color

PHP Image Processing

imagecolorexact — Get the index value of the specified color.

Syntax

int imagecolorexact ( resource $image , int $red , int $green , int $blue )

Returns the index value of the specified color in the image's palette.

Returns -1 if the color is not in the image's palette.

If the image is created from a file, only the colors used in the image will be resolved. Colors that only appear in the palette will not be resolved.

Related Articles

PHP Image Processing

❮ Func Misc Usleep Func Filesystem File Put Contents ❯