PHP Класс 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.
Наследование: implements TippingCanoe\Imager\Processing\Filter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$height integer
$originLeft integer
$originTop integer
$section string
$sections array
$width integer

Открытые методы

Метод Описание
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 )

Описание методов

process() публичный Метод

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

setHeight() публичный Метод

public setHeight ( integer $height )
$height integer

setOriginLeft() публичный Метод

public setOriginLeft ( integer $originLeft )
$originLeft integer

setOriginTop() публичный Метод

public setOriginTop ( integer $originTop )
$originTop integer

setPreserveRatio() публичный Метод

public setPreserveRatio ( boolean $preserveRatio )
$preserveRatio boolean

setSection() публичный Метод

public setSection ( string $section )
$section string

setWidth() публичный Метод

public setWidth ( integer $width )
$width integer

Описание свойств

$height защищенное свойство

protected int $height
Результат integer

$originLeft защищенное свойство

protected int $originLeft
Результат integer

$originTop защищенное свойство

protected int $originTop
Результат integer

$section защищенное свойство

protected string $section
Результат string

$sections защищенное свойство

protected array $sections
Результат array

$width защищенное свойство

protected int $width
Результат integer