PHP 클래스 ManaPHP\Image\Adapter\Imagick

상속: extends ManaPHP\Component, implements ManaPHP\Image\AdapterInterface
파일 보기 프로젝트 열기: manaphp/manaphp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_file string
$_height integer
$_image Imagick
$_width integer

공개 메소드들

메소드 설명
__construct ( string $file )
__destruct ( )
crop ( integer $width, integer $height, integer $offsetX, integer $offsetY ) : static
getHeight ( ) : integer Image height
getInternalHandle ( )
getWidth ( ) : integer Image width
resize ( integer $width, integer $height ) : static
rotate ( integer $degrees, integer $background = 16777215, float $alpha = 1 ) : static Rotate the image by a given degrees
save ( string $file, integer $quality = 80 )
text ( string $text, integer $offsetX, integer $offsetY, float $opacity = 1, integer $color, integer $size = 12, string $font_file = null ) : static Execute a text
watermark ( string $file, integer $offsetX, integer $offsetY, float $opacity = 1 ) : static

메소드 상세

__construct() 공개 메소드

public __construct ( string $file )
$file string

__destruct() 공개 메소드

public __destruct ( )

crop() 공개 메소드

public crop ( integer $width, integer $height, integer $offsetX, integer $offsetY ) : static
$width integer
$height integer
$offsetX integer
$offsetY integer
리턴 static

getHeight() 공개 메소드

Image height
public getHeight ( ) : integer
리턴 integer

getInternalHandle() 공개 메소드

public getInternalHandle ( )

getWidth() 공개 메소드

Image width
public getWidth ( ) : integer
리턴 integer

resize() 공개 메소드

public resize ( integer $width, integer $height ) : static
$width integer
$height integer
리턴 static

rotate() 공개 메소드

Rotate the image by a given degrees
public rotate ( integer $degrees, integer $background = 16777215, float $alpha = 1 ) : static
$degrees integer
$background integer
$alpha float
리턴 static

save() 공개 메소드

public save ( string $file, integer $quality = 80 )
$file string
$quality integer

text() 공개 메소드

Execute a text
public text ( string $text, integer $offsetX, integer $offsetY, float $opacity = 1, integer $color, integer $size = 12, string $font_file = null ) : static
$text string
$offsetX integer
$offsetY integer
$opacity float
$color integer
$size integer
$font_file string
리턴 static

watermark() 공개 메소드

public watermark ( string $file, integer $offsetX, integer $offsetY, float $opacity = 1 ) : static
$file string
$offsetX integer
$offsetY integer
$opacity float
리턴 static

프로퍼티 상세

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

protected string $_file
리턴 string

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

protected int $_height
리턴 integer

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

protected Imagick,ManaPHP\Image\Adapter $_image
리턴 Imagick

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

protected int $_width
리턴 integer