PHP Class Imbo\Image\Transformation\DrawPois

Author: Espen Hovlandsdal ([email protected])
Inheritance: extends Transformation, implements Imbo\EventListener\ListenerInterface
Exibir arquivo Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
getSubscribedEvents ( )
transform ( Imbo\EventManager\EventInterface $event ) Transform the image

Private Methods

Method Description
drawPoiCircle ( array $poi, string $color, integer $borderSize, $pointSize ) Draw a circle/dot to mark a POI
drawPoiRectangle ( array $poi, string $color, integer $borderSize, integer $imageWidth, integer $imageHeight ) Draw rectangle around a POI
getPoisFromMetadata ( Imbo\EventManager\EventInterface $event, Image $image ) : array Fetch POIs from metadata for the image

Method Details

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

transform() public method

Transform the image
public transform ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance