array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'imagickdraw.settextdecoration.php', 1 => 'ImagickDraw::setTextDecoration', ), 'up' => array ( 0 => 'class.imagickdraw.php', 1 => 'ImagickDraw', ), 'prev' => array ( 0 => 'imagickdraw.settextantialias.php', 1 => 'ImagickDraw::setTextAntialias', ), 'next' => array ( 0 => 'imagickdraw.settextencoding.php', 1 => 'ImagickDraw::setTextEncoding', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/imagick/imagickdraw/settextdecoration.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL imagick 2, PECL imagick 3)
ImagickDraw::setTextDecoration — Bir karakter süslemesi tanımlar
Bu işlev hala belgelendirilmemiştir; sadece bağımsız değişken listesi mevcuttur.
Metin çizilirken uygulanacak süsleme belirtilir.
Hiçbir değer dönmez.
Örnek 1 - ImagickDraw::setTextDecoration() örneği
<?php
function setTextDecoration($strokeColor, $fillColor, $backgroundColor, $textDecoration) {
$draw = new \ImagickDraw();
$draw->setStrokeColor($strokeColor);
$draw->setFillColor($fillColor);
$draw->setStrokeWidth(2);
$draw->setFontSize(72);
$draw->setTextDecoration($textDecoration);
$draw->annotation(50, 75, "Lorem Ipsum!");
$imagick = new \Imagick();
$imagick->newImage(500, 200, $backgroundColor);
$imagick->setImageFormat("png");
$imagick->drawImage($draw);
header("Content-Type: image/png");
echo $imagick->getImageBlob();
}
?>