imagecolorresolvealpha(PHP 4 >= 4.0.6, PHP 5) imagecolorresolvealpha — Get the index of the specified color + alpha or its closest possible alternative Описание
int imagecolorresolvealpha
( resource $image
, int $red
, int $green
, int $blue
, int $alpha
)
This function is guaranteed to return a color index for a requested color, either the exact color or the closest possible alternative. Список параметров
Возвращаемые значенияReturns a color index. ПримерыПример #1 Using imagecoloresolvealpha() to get colors from an image
<?phpРезультатом выполнения данного примера будет что-то подобное:
Array
(
[0] => 89
[1] => 85
)
Примечания
Смотрите также
|
||