ImagickDraw::setStrokeAntialias

(PECL imagick 2, PECL imagick 3)

ImagickDraw::setStrokeAntialiasControls whether stroked outlines are antialiased

Beschreibung

public ImagickDraw::setStrokeAntialias(bool $stroke_antialias): bool
Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Controls whether stroked outlines are antialiased. Stroked outlines are antialiased by default. When antialiasing is disabled stroked pixels are thresholded to determine if the stroke color or underlying canvas color should be used.

Parameter-Liste

stroke_antialias

the antialias setting

Rückgabewerte

Es wird kein Wert zurückgegeben.

Beispiele

Beispiel #1 ImagickDraw::setStrokeAntialias() example

<?php
function setStrokeAntialias($strokeColor$fillColor$backgroundColor) {

    
$draw = new \ImagickDraw();

    
$draw->setStrokeColor($strokeColor);
    
$draw->setFillColor($fillColor);
    
$draw->setStrokeWidth(1);
    
$draw->setStrokeAntialias(false);
    
$draw->line(100100400105);

    
$draw->line(100140400185);

    
$draw->setStrokeAntialias(true);
    
$draw->line(100110400115);
    
$draw->line(100150400195);

    
$image = new \Imagick();
    
$image->newImage(500250$backgroundColor);
    
$image->setImageFormat("png");

    
$image->drawImage($draw);

    
header("Content-Type: image/png");
    echo 
$image->getImageBlob();
}

?>

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

SEO-URLs und MySQL

SEO-friendly URLs and proper MySQL optimization can make a big difference in improving website speed, organization, and search engine rankings for ...

Geschrieben von samueleasley71 am 28.05.2026 19:09:06
Forum: SQL / Datenbanken
SEO-URLs und MySQL

SEO-friendly URLs and efficient MySQL optimization can greatly improve website performance, search engine visibility, and overall user experience ...

Geschrieben von samueleasley71 am 28.05.2026 18:39:21
Forum: SQL / Datenbanken
MMOexp:Tight End Guide Running and Passing in College Football 26

In College Football 26 Coins (https://www.mmoexp.com/College-football-26/Coins.html)​, the tight end is one of the most versatile positions on t ...

Geschrieben von Florencehg am 28.05.2026 09:34:37
Forum: Off-Topic Diskussionen
MMOexp:Skull and Bones-Unlock Tier 9+ Ship Upgrades

Ubisoft's Skull and Bones Silver (https://www.mmoexp.com/Skull-and-bones/Silver.html?fsid=128558)​ has quickly become a beloved title for pirate ...

Geschrieben von Florencehg am 28.05.2026 09:33:56
Forum: Off-Topic Diskussionen