array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'imagickdraw.ellipse.php', 1 => 'ImagickDraw::ellipse', ), 'up' => array ( 0 => 'class.imagickdraw.php', 1 => 'ImagickDraw', ), 'prev' => array ( 0 => 'imagickdraw.destroy.php', 1 => 'ImagickDraw::destroy', ), 'next' => array ( 0 => 'imagickdraw.getclippath.php', 1 => 'ImagickDraw::getClipPath', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/imagick/imagickdraw/ellipse.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL imagick 2, PECL imagick 3)
ImagickDraw::ellipse — Görüntünün üzerine bir elips çizer
$ox
,$oy
,$rx
,$ry
,$başlangıç
,$bitiş
Bu işlev hala belgelendirilmemiştir; sadece bağımsız değişken listesi mevcuttur.
Görüntünün üzerine bir elips çizer.
ox
oy
rx
ry
başlangıç
bitiş
Hiçbir değer dönmez.
Örnek 1 - ImagickDraw::ellipse() örneği
<?php
function ellipse($strokeColor, $fillColor, $backgroundColor) {
$draw = new \ImagickDraw();
$draw->setStrokeColor($strokeColor);
$draw->setFillColor($fillColor);
$draw->setStrokeWidth(2);
$draw->setFontSize(72);
$draw->ellipse(125, 70, 100, 50, 0, 360);
$draw->ellipse(350, 70, 100, 50, 0, 315);
$draw->push();
$draw->translate(125, 250);
$draw->rotate(30);
$draw->ellipse(0, 0, 100, 50, 0, 360);
$draw->pop();
$draw->push();
$draw->translate(350, 250);
$draw->rotate(30);
$draw->ellipse(0, 0, 100, 50, 0, 315);
$draw->pop();
$imagick = new \Imagick();
$imagick->newImage(500, 500, $backgroundColor);
$imagick->setImageFormat("png");
$imagick->drawImage($draw);
header("Content-Type: image/png");
echo $imagick->getImageBlob();
}
?>