ImagickDraw::circle

(PECL imagick 2.0.0)

ImagickDraw::circleDraws a circle

Description

bool ImagickDraw::circle ( float $ox , float $oy , float $px , float $py )
Warning

This function is currently not documented; only its argument list is available.

Draws a circle on the image.

Parameters

ox

origin x coordinate

oy

origin y coordinate

px

perimeter x coordinate

py

perimeter y coordinate

Return Values

No value is returned.

Коментарии

Автор:
The four values required here are a bit confusing. After all, a circle is defined by three values: the x, y coordinates of the centre, and the radius, r.

The fourth value is redundant, but has to be given, otherwise the function fails. One way of coping with this redundancy is:

<?php
$draw 
= new ImagickDraw ();
//given that $x and $y are the coordinates of the centre, and $r the radius:
$draw->circle ($x$y$x $r$y);
?>

There are any number of actions which are synonymous with the last, including:
<?php
$draw
->circle ($x$y$x$y $r);
$draw->circle ($x$y$x $r$y);
$draw->circle ($x$y$x$y $r);
// etc, etc.
?>

Hope this helps.
2014-01-27 23:26:08
http://php5.kiev.ua/manual/ru/imagickdraw.circle.html

    Поддержать сайт на родительском проекте КГБ