PHP 클래스 Neos\Media\Domain\Model\Adjustment\CropImageAdjustment

상속: extends AbstractImageAdjustment
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$height integer
$position integer
$width integer
$x integer
$y integer

공개 메소드들

메소드 설명
applyToImage ( Imagine\Image\ImageInterface $image ) : Imagine\Image\ImageInterface Applies this adjustment to the given Imagine Image object
canBeApplied ( Imagine\Image\ImageInterface $image ) : boolean Check if this Adjustment can or should be applied to its ImageVariant.
getHeight ( ) : integer Returns height
getWidth ( ) : integer Returns width
getX ( ) : integer Returns x
getY ( ) : integer Returns y
refit ( Neos\Media\Domain\Model\ImageInterface $image ) : void Refits the crop proportions to be the maximum size within the image boundaries.
setHeight ( integer $height ) : void Sets height
setWidth ( integer $width ) : void Sets width
setX ( integer $x ) : void Sets x
setY ( integer $y ) : void Sets y

메소드 상세

applyToImage() 공개 메소드

Applies this adjustment to the given Imagine Image object
public applyToImage ( Imagine\Image\ImageInterface $image ) : Imagine\Image\ImageInterface
$image Imagine\Image\ImageInterface
리턴 Imagine\Image\ImageInterface

canBeApplied() 공개 메소드

Check if this Adjustment can or should be applied to its ImageVariant.
public canBeApplied ( Imagine\Image\ImageInterface $image ) : boolean
$image Imagine\Image\ImageInterface
리턴 boolean

getHeight() 공개 메소드

Returns height
public getHeight ( ) : integer
리턴 integer

getWidth() 공개 메소드

Returns width
public getWidth ( ) : integer
리턴 integer

getX() 공개 메소드

Returns x
public getX ( ) : integer
리턴 integer

getY() 공개 메소드

Returns y
public getY ( ) : integer
리턴 integer

refit() 공개 메소드

Refits the crop proportions to be the maximum size within the image boundaries.
public refit ( Neos\Media\Domain\Model\ImageInterface $image ) : void
$image Neos\Media\Domain\Model\ImageInterface
리턴 void

setHeight() 공개 메소드

Sets height
public setHeight ( integer $height ) : void
$height integer
리턴 void

setWidth() 공개 메소드

Sets width
public setWidth ( integer $width ) : void
$width integer
리턴 void

setX() 공개 메소드

Sets x
public setX ( integer $x ) : void
$x integer
리턴 void

setY() 공개 메소드

Sets y
public setY ( integer $y ) : void
$y integer
리턴 void

프로퍼티 상세

$height 보호되어 있는 프로퍼티

protected int $height
리턴 integer

$position 보호되어 있는 프로퍼티

protected int $position
리턴 integer

$width 보호되어 있는 프로퍼티

protected int $width
리턴 integer

$x 보호되어 있는 프로퍼티

protected int $x
리턴 integer

$y 보호되어 있는 프로퍼티

protected int $y
리턴 integer