PHP Class TippingCanoe\Imager\Processing\Crop

Allows cropping of an image. Defaults to center of image. Can be given a relative starting point for the top-left origin of the crop to begin.
Inheritance: implements TippingCanoe\Imager\Processing\Filter
Mostrar archivo Open project: tippingcanoe/imager

Protected Properties

Property Type Description
$height integer
$originLeft integer
$originTop integer
$section string
$sections array
$width integer

Public Methods

Method Description
process ( File $file, Image $image, array $config = null )
setHeight ( integer $height )
setOriginLeft ( integer $originLeft )
setOriginTop ( integer $originTop )
setPreserveRatio ( boolean $preserveRatio )
setSection ( string $section )
setWidth ( integer $width )

Method Details

process() public method

public process ( File $file, Image $image, array $config = null )
$file Symfony\Component\HttpFoundation\File\File
$image TippingCanoe\Imager\Model\Image
$config array

setHeight() public method

public setHeight ( integer $height )
$height integer

setOriginLeft() public method

public setOriginLeft ( integer $originLeft )
$originLeft integer

setOriginTop() public method

public setOriginTop ( integer $originTop )
$originTop integer

setPreserveRatio() public method

public setPreserveRatio ( boolean $preserveRatio )
$preserveRatio boolean

setSection() public method

public setSection ( string $section )
$section string

setWidth() public method

public setWidth ( integer $width )
$width integer

Property Details

$height protected_oe property

protected int $height
return integer

$originLeft protected_oe property

protected int $originLeft
return integer

$originTop protected_oe property

protected int $originTop
return integer

$section protected_oe property

protected string $section
return string

$sections protected_oe property

protected array $sections
return array

$width protected_oe property

protected int $width
return integer