draw() public method

public draw ( grafika\ImageInterface $image ) : grafika\ImageInterface
$image grafika\ImageInterface
return grafika\ImageInterface
Esempio n. 1
0
 /**
  * Draw a DrawingObject on the image. See Drawing Objects section.
  *
  * @param Image $image
  * @param DrawingObjectInterface $drawingObject
  *
  * @return $this
  */
 public function draw(&$image, $drawingObject)
 {
     if ($image->isAnimated()) {
         // Ignore animated GIF for now
         return $this;
     }
     $image = $drawingObject->draw($image);
     return $this;
 }