PHP 8.3.4 Released!

Imagick::opaquePaintImage

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Imagick::opaquePaintImageChanges the color value of any pixel that matches target

Beschreibung

public 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. Diese Funktion ist verfügbar, wenn Imagick gegen die ImageMagick-Version 6.3.8 oder höher kompiliert wurde.

Parameter-Liste

target

ImagickPixel object or a string containing the color to change

fill

The replacement color

fuzz

Die Menge an Ungenauigkeit. Wird dieser Wert z. B. auf 10 gesetzt, so wird die Farbe Rot bei Intensitäten von 100 und 102 als identisch betrachtet.

invert

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

channel

Übergeben Sie eine Channel-Konstante, die für Ihren Channel-Moduls gültig ist. Um mehr als einen Channel anzuwenden, können Sie die Channel-Konstanten mit bitweisen Operationen verknüpfen. Der Standardwert ist Imagick::CHANNEL_DEFAULT. Weitere Informationen enthält die Liste der Channel-Konstanten

Rückgabewerte

Liefert true bei Erfolg.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top