(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Imagick::opaquePaintImage — Changes the color value of any pixel that matches target
$target
, mixed $fill
, float $fuzz
, bool $invert
, int $channel
= Imagick::CHANNEL_DEFAULT
) : boolChanges any pixel that matches color with the color defined by fill. Este método está disponível se o PHP foi compilado com o ImageMagick versão 6.3.8 ou superior.
target
ImagickPixel object or a string containing the color to change
fill
The replacement color
fuzz
A quantidade de variação (fuzz). Por exemplo no fuzz de 10 a cor vermelha nas intensidades 100 e 102 são interpretadas como a mesma cor.
invert
If true
paints any pixel that does not match the target color.
channel
Informa qualquer constante de canal válida no modo do canal. Para mais de um canal, combine as constantes de canal utilizando operações bitwise. O padrão é Imagick::CHANNEL_DEFAULT
. Veja nessa lista de constantes de canal
Retorna true
no sucesso.