PHP » GoLang |
login |
register |
about
|
GoLang ImagickPixel::getColor
request it (285)
GoLang replacement for PHP's ImagickPixel::getColor
[edit | history]
ImagickPixel::getColor(PECL imagick 2.0.0) ImagickPixel::getColor — Returns the color Description
array ImagickPixel::getColor
([ int
$normalized = 0
] )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. Parameters
Return Values
An array of channel values, each normalized if Examples
Example #1 Basic Imagick::getColor() usage
<?php The above example will output: 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 ) |
more
Recently updated
more
Most requested
more
Last requests
|