Grafika\DrawingObjectInterface::draw PHP 메소드

draw() 공개 메소드

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

Usage Example

예제 #1
0
파일: Editor.php 프로젝트: kosinix/grafika
 /**
  * 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