PHP 클래스 Webiny\Component\Image\Bridge\Imagine\Imagine

상속: implements Webiny\Component\Image\Bridge\ImageLoaderInterface, use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework

공개 메소드들

메소드 설명
__construct ( ConfigObject $config ) Base constructor.
create ( integer $width, integer $height, string $bgColor = null, integer $alpha = 100 ) : Webiny\Component\Image\ImageInterface Create a blank image with of given dimensions and fill it with $bgColor.
load ( string $string ) : Webiny\Component\Image\ImageInterface Create a new ImageInterface instance form the given binary string.
open ( File $image ) : Webiny\Component\Image\ImageInterface Creates a new ImageInterface instance from the given image at the provided path.
resource ( mixed $resource ) : Webiny\Component\Image\ImageInterface Create a new ImageInterface instance from the given resource.

비공개 메소드들

메소드 설명
getLibraryInstance ( string $library ) : Imagine\Gd\Imagine | Imagine\Gmagick\Imagine | Imagine\Imagick\Imagine Create a library instance based on given library name.

메소드 상세

__construct() 공개 메소드

Base constructor.
public __construct ( ConfigObject $config )
$config Webiny\Component\Config\ConfigObject

create() 공개 메소드

Create a blank image with of given dimensions and fill it with $bgColor.
public create ( integer $width, integer $height, string $bgColor = null, integer $alpha = 100 ) : Webiny\Component\Image\ImageInterface
$width integer Width of the new image.
$height integer Height of the new image.
$bgColor string Background color. Following formats are acceptable - "fff" - "ffffff" - array(255,255,255)
$alpha integer Alpha transparency.
리턴 Webiny\Component\Image\ImageInterface

load() 공개 메소드

Create a new ImageInterface instance form the given binary string.
public load ( string $string ) : Webiny\Component\Image\ImageInterface
$string string Binary string that holds image information.
리턴 Webiny\Component\Image\ImageInterface

open() 공개 메소드

Creates a new ImageInterface instance from the given image at the provided path.
public open ( File $image ) : Webiny\Component\Image\ImageInterface
$image Webiny\Component\Storage\File\File Path to an image on the disk.
리턴 Webiny\Component\Image\ImageInterface

resource() 공개 메소드

Create a new ImageInterface instance from the given resource.
public resource ( mixed $resource ) : Webiny\Component\Image\ImageInterface
$resource mixed Resource.
리턴 Webiny\Component\Image\ImageInterface