The manual was saying to use the wrong constants. This function takes the Imagick::COLOR_XXX constants not the CHANNEL_XXX constants.

https://github.com/mkoppanen/imagick/blob/master/imagickpixel_class.c#L437

-- 
Provided by anonymous 34693 (Danack@Basereality.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331860 c90b9560-bf6c-de11-be94-00142212c4b1