(No version information available, might only be in Git)
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.
targetImagickPixel object or a string containing the color to change
fillThe replacement color
fuzzA 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.