PHP Class Imbo\Image\Transformation\Border

Author: Christer Edvartsen ([email protected])
Inheritance: extends Transformation, implements Imbo\EventListener\ListenerInterface
Afficher le fichier Open project: imbo/imbo

Méthodes publiques

Méthode Description
getSubscribedEvents ( )
transform ( Imbo\EventManager\EventInterface $event ) Transform the image

Private Methods

Méthode Description
drawBorderInside ( string $color, integer $borderWidth, integer $borderHeight, Image $image ) Draw border inside (on top of) the existing image
expandImage ( string $color, integer $borderWidth, integer $borderHeight, Image $image ) Expand the image so that we can fit the width and height of the borders specified on each side, than copy the original image to the center of the canvas.

Method Details

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

transform() public méthode

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