Grafika\DrawingObjectInterface::draw PHP Method

draw() public method

public draw ( grafika\ImageInterface $image ) : grafika\ImageInterface
$image grafika\ImageInterface
return grafika\ImageInterface
    public function draw($image);

Usage Example

Exemplo 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;
 }
DrawingObjectInterface