PHP Class ManaPHP\Image\Adapter\Imagick

Inheritance: extends ManaPHP\Component, implements ManaPHP\Image\AdapterInterface
Afficher le fichier Open project: manaphp/manaphp Class Usage Examples

Protected Properties

Свойство Type Description
$_file string
$_height integer
$_image Imagick
$_width integer

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

public __construct ( string $file )
$file string

__destruct() public méthode

public __destruct ( )

crop() public méthode

public crop ( integer $width, integer $height, integer $offsetX, integer $offsetY ) : static
$width integer
$height integer
$offsetX integer
$offsetY integer
Résultat static

getHeight() public méthode

Image height
public getHeight ( ) : integer
Résultat integer

getInternalHandle() public méthode

public getInternalHandle ( )

getWidth() public méthode

Image width
public getWidth ( ) : integer
Résultat integer

resize() public méthode

public resize ( integer $width, integer $height ) : static
$width integer
$height integer
Résultat static

rotate() public méthode

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

save() public méthode

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

text() public méthode

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
Résultat static

watermark() public méthode

public watermark ( string $file, integer $offsetX, integer $offsetY, float $opacity = 1 ) : static
$file string
$offsetX integer
$offsetY integer
$opacity float
Résultat static

Property Details

$_file protected_oe property

protected string $_file
Résultat string

$_height protected_oe property

protected int $_height
Résultat integer

$_image protected_oe property

protected Imagick,ManaPHP\Image\Adapter $_image
Résultat Imagick

$_width protected_oe property

protected int $_width
Résultat integer