|
update : 2015.11.03
php.shukuma.com검색:
|
imagecolorresolvealpha(PHP 4 >= 4.0.6, PHP 5, PHP 7) 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. 예제Example #1 Using imagecoloresolvealpha() to get colors from an image
<?php위 예제의 출력 예시:
Array
(
[0] => 89
[1] => 85
)
주의
|