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
파일 보기 프로젝트 열기: tippingcanoe/imager

보호된 프로퍼티들

프로퍼티 타입 설명
$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