imagecolorexact

PHP 4, PHP 5, PHP 7, PHP 8
imagecolorexact - Get the index of the specified color
Manual
Code Examples

Example #1 Get colors from the GD logo

Result: Array ( [0] => 16711680 [1] => 0 [2] => 16777215 [3] => 6618932 )
PHP Version:


Function imagecolorexact:

Image Processing and GD Functions

Most used PHP functions