PHP 인터페이스 Neos\Media\Domain\Model\ImageInterface

상속: extends Neos\Media\Domain\Model\ResourceBasedInterface
파일 보기 프로젝트 열기: neos/neos-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
getAspectRatio ( boolean $respectOrientation = false ) : float Edge / aspect ratio of the image
getHeight ( ) : integer Height of the image in pixels
getOrientation ( ) : string Orientation of this image, i.e. portrait, landscape or square
getWidth ( ) : integer Width of the image in pixels
isOrientationLandscape ( ) : boolean Whether this image is in landscape orientation
isOrientationPortrait ( ) : boolean Whether this image is in portrait orientation
isOrientationSquare ( ) : boolean Whether this image is square aspect ratio and therefore has a square orientation

메소드 상세

getAspectRatio() 공개 메소드

Edge / aspect ratio of the image
public getAspectRatio ( boolean $respectOrientation = false ) : float
$respectOrientation boolean If false (the default), orientation is disregarded and always a value >= 1 is returned (like usual in "4 / 3" or "16 / 9")
리턴 float

getHeight() 공개 메소드

Height of the image in pixels
public getHeight ( ) : integer
리턴 integer

getOrientation() 공개 메소드

Orientation of this image, i.e. portrait, landscape or square
public getOrientation ( ) : string
리턴 string One of this interface's ORIENTATION_* constants.

getWidth() 공개 메소드

Width of the image in pixels
public getWidth ( ) : integer
리턴 integer

isOrientationLandscape() 공개 메소드

Whether this image is in landscape orientation
public isOrientationLandscape ( ) : boolean
리턴 boolean

isOrientationPortrait() 공개 메소드

Whether this image is in portrait orientation
public isOrientationPortrait ( ) : boolean
리턴 boolean

isOrientationSquare() 공개 메소드

Whether this image is square aspect ratio and therefore has a square orientation
public isOrientationSquare ( ) : boolean
리턴 boolean