drawArc() public method

Method to add an arc to the image.
public drawArc ( integer $x, integer $y, integer $start, integer $end, integer $w, integer $h = null ) : Imagick
$x integer
$y integer
$start integer
$end integer
$w integer
$h integer
return Imagick
Exemplo n.º 1
0
 public function testAddArc()
 {
     $i = new Imagick(__DIR__ . '/../tmp/test.jpg');
     $i->setStrokeColor(new Rgb(0, 0, 0))->setStrokeWidth(5)->drawArc(320, 240, 0, 120, 100, 100);
     $i->setBackgroundColor(new Rgb(255, 0, 0));
     $i->drawArc(320, 240, 0, 120, 100, 100);
     $i->setFillColor(new Rgb(255, 0, 0));
     $i->drawArc(320, 240, 0, 120, 100, 100);
     $this->assertEquals(640, $i->getWidth());
 }