|
update : 2015.11.03
php.shukuma.com검색:
|
ImagickPixel::getColor(PECL imagick 2.0.0) ImagickPixel::getColor — Returns the color 설명
array ImagickPixel::getColor
([ bool
$normalized = false
] )Returns the color described by the ImagickPixel object, as an array. If the color has an opacity channel set, this is provided as a fourth value in the list. 인수
반환값
An array of channel values, each normalized if 예제
Example #1 Basic Imagick::getColor() usage
<?php위 예제의 출력:
Standard values
Array
(
[r] => 165
[g] => 42
[b] => 42
[a] => 0
)
Normalized values:
Array
(
[r] => 0.64705882352941
[g] => 0.16470588235294
[b] => 0.16470588235294
[a] => 0.25000381475547
)
|