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

Inheritance: implements Sulu\Bundle\MediaBundle\Media\ImageConverter\Transformation\TransformationInterface
Mostrar archivo Open project: sulu/sulu

Public Methods

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

Protected Methods

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

Method Details

__construct() public method

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

createMask() protected method

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

execute() public method

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