Imagick::paintOpaqueImage

(PECL imagick 2, PECL imagick 3)

Imagick::paintOpaqueImageChange any pixel that matches color

Warnung

Diese Funktion ist von Imagick 3.4.4 an MISSBILLIGT. Von der weiteren Verwendung wird dringend abgeraten.

Beschreibung

public Imagick::paintOpaqueImage(
    mixed $target,
    mixed $fill,
    float $fuzz,
    int $channel = Imagick::CHANNEL_DEFAULT
): bool

Changes any pixel that matches color with the color defined by fill.

Parameter-Liste

target

Change this target color to the fill color within the image. An ImagickPixel object or a string representing the target color.

fill

An ImagickPixel object or a string representing the fill color.

fuzz

The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same.

channel

Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channeltype constants using bitwise operators. Refer to this list of channel constants.

Rückgabewerte

Liefert true bei Erfolg.

Fehler/Exceptions

Wirft ImagickException bei Fehlern.

Changelog

Version Beschreibung
PECL imagick 2.1.0 Now allows a string representing the color as first and second parameter. Previous versions allow only an ImagickPixel object.

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

link in Hyperlink umwandeln

Danke für Eure Antworten und Tips. Ich habe mit meinen bescheidenen Programmierkenntnissen die Routine nun wie folgt komplett umgestellt: $tex ...

Geschrieben von Mr_Frost am 02.05.2026 21:05:35
Forum: PHP Developer Forum
link in Hyperlink umwandeln

Eine übliche Methode, dies in PHP zu lösen, besteht darin, URLs in einem Textstring automatisch zu erkennen und in HTML-Links umzuwandeln. Anst ...

Geschrieben von LaViaSilva am 02.05.2026 14:08:48
Forum: PHP Developer Forum
link in Hyperlink umwandeln

Geschrieben von scatello am 02.05.2026 09:56:48
Forum: PHP Developer Forum
link in Hyperlink umwandeln

Hallo zusammen, ich versuche mich gerade an einem script, dass einfache links in einen Hyperlink umwandelt. Bestehende Hyperlinks sollen ignorier ...

Geschrieben von Mr_Frost am 02.05.2026 02:23:32
Forum: PHP Developer Forum