PHP 인터페이스 Contao\CoreBundle\Image\ImageFactoryInterface

저자: Martin Auswöger ([email protected])
파일 보기 프로젝트 열기: contao/core-bundle 0 사용 예제들

공개 메소드들

메소드 설명
create ( string | Contao\Image\ImageInterface $path, integer | array | Contao\Image\ResizeConfigurationInterface | null $size = null, string | null $targetPath = null ) : Contao\Image\ImageInterface Creates an Image object.
getImportantPartFromLegacyMode ( Contao\Image\ImageInterface $image, string $mode ) : Contao\Image\ImportantPartInterface Returns the equivalent important part from a legacy resize mode.

메소드 상세

create() 공개 메소드

Creates an Image object.
public create ( string | Contao\Image\ImageInterface $path, integer | array | Contao\Image\ResizeConfigurationInterface | null $size = null, string | null $targetPath = null ) : Contao\Image\ImageInterface
$path string | Contao\Image\ImageInterface The path to the source image or an Image object
$size integer | array | Contao\Image\ResizeConfigurationInterface | null An image size ID, an array with width, height and resize mode or a ResizeConfiguration object
$targetPath string | null
리턴 Contao\Image\ImageInterface

getImportantPartFromLegacyMode() 공개 메소드

Returns the equivalent important part from a legacy resize mode.
public getImportantPartFromLegacyMode ( Contao\Image\ImageInterface $image, string $mode ) : Contao\Image\ImportantPartInterface
$image Contao\Image\ImageInterface
$mode string One of left_top, center_top, right_top, left_center, center_center, right_center, left_bottom, center_bottom, right_bottom
리턴 Contao\Image\ImportantPartInterface