PHP Interface Sulu\Bundle\MediaBundle\Media\ImageConverter\Focus\FocusInterface

Show file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
focus ( Imagine\Image\ImageInterface $image, integer $x, integer $y, integer $width, integer $height ) : Imagine\Image\ImageInterface Crops the given image based on a set focus point.

Method Details

focus() public method

Crops the given image based on a set focus point.
public focus ( Imagine\Image\ImageInterface $image, integer $x, integer $y, integer $width, integer $height ) : Imagine\Image\ImageInterface
$image Imagine\Image\ImageInterface The image to crop
$x integer The x coordinate of the focus point
$y integer The y coordinate of the focuse point
$width integer The desired width of the resulting image
$height integer The desired height of the resulting image
return Imagine\Image\ImageInterface