Example #1
0
 /**
  * Wrapper taking custom units and margins into account
  * @see \ZendPdf\Page::drawEllipse() for documentation
  */
 public function drawEllipse($x1, $y1, $x2, $y2, $param5 = null, $param6 = null, $param7 = null)
 {
     $this->convertCoordinatesFromUserSpace($x1, $y1);
     $this->convertCoordinatesFromUserSpace($x2, $y2);
     list($y1, $y2) = array($y2, $y1);
     return parent::drawEllipse($x1, $y1, $x2, $y2, $param5, $param6, $param7);
 }
Example #2
0
 protected function doDrawEllipse($x, $y, $width, $height, $fillType)
 {
     $this->page->drawEllipse($x - $width / 2, $y - $height / 2, $x + $width / 2, $y + $height / 2, $this->translateFillType($fillType));
 }