php8.5
Home/ Manual/ imagick / imagick/ Imagick::opaquePaintImage

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

target

ImagickPixel object or a string containing the color to change

fill

The replacement color

fuzz

Fuzz

invert

If true paints any pixel that does not match the target color.

channel

Channel

Return Values

Success

Source: reference/imagick/imagick/opaquepaintimage.xml · from the official PHP manual (php/doc-en)