PHP Class Sulu\Bundle\MediaBundle\Media\ImageConverter\Transformation\PasteTransformation

Inheritance: implements Sulu\Bundle\MediaBundle\Media\ImageConverter\Transformation\TransformationInterface
Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Config\FileLocator $fileLocator ) MaskTransformation constructor.
execute ( Imagine\Image\ImageInterface $image, $parameters )

Méthodes protégées

Méthode Description
createMask ( $maskPath, $width, $height ) : Imagine\Image\ImageInterface Create mask.

Method Details

__construct() public méthode

MaskTransformation constructor.
public __construct ( Symfony\Component\Config\FileLocator $fileLocator )
$fileLocator Symfony\Component\Config\FileLocator

createMask() protected méthode

Create mask.
protected createMask ( $maskPath, $width, $height ) : Imagine\Image\ImageInterface
$maskPath
$width
$height
Résultat Imagine\Image\ImageInterface

execute() public méthode

public execute ( Imagine\Image\ImageInterface $image, $parameters )
$image Imagine\Image\ImageInterface