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
Afficher le fichier Open project: tippingcanoe/imager

Protected Properties

Свойство Type Description
$height integer
$originLeft integer
$originTop integer
$section string
$sections array
$width integer

Méthodes publiques

Méthode 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 méthode

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

setHeight() public méthode

public setHeight ( integer $height )
$height integer

setOriginLeft() public méthode

public setOriginLeft ( integer $originLeft )
$originLeft integer

setOriginTop() public méthode

public setOriginTop ( integer $originTop )
$originTop integer

setPreserveRatio() public méthode

public setPreserveRatio ( boolean $preserveRatio )
$preserveRatio boolean

setSection() public méthode

public setSection ( string $section )
$section string

setWidth() public méthode

public setWidth ( integer $width )
$width integer

Property Details

$height protected_oe property

protected int $height
Résultat integer

$originLeft protected_oe property

protected int $originLeft
Résultat integer

$originTop protected_oe property

protected int $originTop
Résultat integer

$section protected_oe property

protected string $section
Résultat string

$sections protected_oe property

protected array $sections
Résultat array

$width protected_oe property

protected int $width
Résultat integer