PHP Class Imbo\Image\Transformation\Border

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

Public Methods

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

Private Methods

Method 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 method

public static getSubscribedEvents ( )

transform() public method

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