update : 2015.11.03
php.shukuma.com검색:
|
imagecolorclosestalpha(PHP 4 >= 4.0.6, PHP 5, PHP 7) imagecolorclosestalpha — Get the index of the closest color to the specified color + alpha 설명
int imagecolorclosestalpha
( resource
$image
, int $red
, int $green
, int $blue
, int $alpha
)
Returns the index of the color in the palette of the image which
is "closest" to the specified RGB value and
인수
반환값Returns the index of the closest color in the palette. 예제
Example #1 Search for a set of colors in an image
<?php 위 예제의 출력 예시: #0: Search (254, 145, 154, 50); Closest match: (252, 150, 148, 0). #1: Search (153, 145, 188, 127); Closest match: (148, 150, 196, 0). #2: Search (153, 90, 145, 0); Closest match: (148, 90, 156, 0). #3: Search (255, 137, 92, 84); Closest match: (252, 150, 92, 0). 주의
참고
|