ImagickDraw::setTextDecoration
  (PECL imagick 2, PECL imagick 3)
ImagickDraw::setTextDecoration — Bir karakter süslemesi tanımlar
  
 
  Açıklama
  
   public
   ImagickDraw::setTextDecoration(
int $süs): 
bool 
  UyarıBu işlev hala
belgelendirilmemiştir; sadece bağımsız değişken listesi
mevcuttur.
 
  
   Metin çizilirken uygulanacak süsleme belirtilir.
  
  
 
  Bağımsız Değişkenler
  
   
    
     - süs
- 
      
       Süsleme türü
         sabitlerinden biri (imagick::DECORATION_*).
 
 
 
  Dönen Değerler
  
   Hiçbir değer dönmez.
  
  
 
  Örnekler
  
    
      Ö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();
}
?>