imagecolorexact(PHP 4, PHP 5) imagecolorexact — Get the index of the specified color Описание
int imagecolorexact
( resource $image
, int $red
, int $green
, int $blue
)
Returns the index of the specified color in the palette of the image. Если изображение было создано из файла, то будут распознаны только цвета, используемые в изображении. Цвета, которые используются только в палитре, распознаны не будут. Список параметров
Возвращаемые значенияReturns the index of the specified color in the palette, or -1 if the color does not exist. ПримерыПример #1 Get colors from the GD logo
<?phpРезультатом выполнения данного примера будет что-то подобное:
Array
(
[0] => 16711680
[1] => 0
[2] => 16777215
[3] => 6618932
)
|
||