ImagickDraw::settextantialias

creationdev

Documentation

Formation référencement web
Formation référencement web

100$ CAD

Référencement web optimisé
Référencement web optimisé

500$ CAD

Conception web ecommerce
Conception web ecommerce

2500$ CAD

Conception web standard
Conception web standard

2500$ CAD

Référencement web organique
Référencement web organique

300$ CAD

Conception web extra
Conception web extra

5000$ CAD

Conception web microsite
Conception web microsite

1000$ CAD

Conception d'application web
Conception d'application web

100$ CAD

Référencement web expert
Référencement web expert

750$ CAD

Référencement web stratégique
Référencement web stratégique

1000$ CAD

Méthode

Méthode

ImagickDraw::settextantialias

ImagickDraw::settextantialias

Page Vue 26 déc. 2018
Page Vue 14 fois

(PECL imagick 2, PECL imagick 3)

ImagickDraw::setTextAntialias — Contrôle l'anti-alisasing du texte

Description

public ImagickDraw::setTextAntialias(bool $antiAlias): bool Avertissement

Cette fonction est actuellement non documentée ; seule la liste des arguments est disponible.

Contrôle l'anti-alisasing du texte. Les textes sont anti-aliasés par défaut.

Liste de paramètres

antiAlias

Valeurs de retour

Aucune valeur n'est retournée.

Exemples

Exemple #1 Exemple avec imagickdraw::settextantialias()

<?php
function setTextAntialias($fillColor, $backgroundColor) {

$draw = new \ImagickDraw();
$draw->setStrokeColor('none');
$draw->setFillColor($fillColor);
$draw->setStrokeWidth(1);
$draw->setFontSize(32);
$draw->setTextAntialias(false);
$draw->annotation(5, 30, "Lorem Ipsum!");
$draw->setTextAntialias(true);
$draw->annotation(5, 65, "Lorem Ipsum!");

$imagick = new \Imagick();
$imagick->newImage(220, 80, $backgroundColor);
$imagick->setImageFormat("png");
$imagick->drawImage($draw);

//Scale the image so that people can see the aliasing.
$imagick->scaleImage(220 * 6, 80 * 6);
$imagick->cropImage(640, 480, 0, 0);

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

?>


Source : http://www.php.net/
Ref : methode-imagickdraw::settextantialias.php




Contact

Contact

Veuillez saisir les infos dans le formulaire d'identification
suivant pour concevoir et référencer votre site.









Veuillez saisir votre message.

Carte d'affaires

Affichage de la carte d'affaires recto/verso.

Carte d'affaires recto
Carte d'affaires verso

Partagez

Partagez

Discussion ayant comme sujet la page ImagickDraw::settextantialias.

©2025 creationdev -  F.A.Q. -  Soutien -  Haut de page
THÈMES: