Php Imagecolorresolve
# PHP imagecolorresolve - Get the index value of the specified color or the closest alternative value that may be obtained
[PHP Image Processing](#)
imagecolorresolve β Get the index value of the specified color or the closest alternative value that may be obtained.
### Syntax
int imagecolorresolve ( resource $image , int $red , int $green , int $blue )
This function guarantees that a color index is returned for the requested color, either the exact value or the closest alternative value available.
If the image was created from a file, only colors used in the image will be resolved. Colors that only appear in the palette will not be resolved.
### Related Articles
Get the index value of the color closest to the specified color.
[PHP Image Processing](#)
YouTip