Imagick::opaquePaintImage
PHP function
Edit on GitHub ✎
(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Changes the color value of any pixel that matches target
Description
Imagick::opaquePaintImage(mixed $target, mixed $fill, float $fuzz, bool $invert, int $channel = Imagick::CHANNEL_DEFAULT): bool
Changes any pixel that matches color with the color defined by fill. 0x638
Parameters
targetImagickPixel object or a string containing the color to change
fillThe replacement color
fuzzFuzz
invertIf true paints any pixel that does not match the target color.
channelChannel
Return Values
Success