Свойство | Type | Description | |
---|---|---|---|
$path | string | ||
$resource | mixed | contains imageresource |
Méthode | Description | |
---|---|---|
addOverlay ( $image, $x, $y, $alpha = 100, $composite = "COMPOSITE_DEFAULT", $origin = 'top-left' ) | ||
crop ( $x, $y, $width, $height ) : self | ||
frame ( $width, $height ) : self | ||
grayscale ( ) : self | ||
load ( $imagePath, array $options = [] ) | ||
mirror ( string $mode ) | ||
resize ( $width, $height ) : self | ||
rotate ( $angle ) | ||
save ( $path, null $format = null, null $quality = null ) | ||
sepia ( ) : self | ||
setBackgroundColor ( $color ) : |
||
setBackgroundImage ( $image, null | string $mode = null ) |
Méthode | Description | |
---|---|---|
createImage ( $width, $height ) : resource | ||
destroy ( ) : void | ||
hasAlphaChannel ( ) : boolean |
public addOverlay ( $image, $x, $y, $alpha = 100, $composite = "COMPOSITE_DEFAULT", $origin = 'top-left' ) |
protected createImage ( $width, $height ) : resource | ||
$width | ||
$height | ||
Résultat | resource |
public crop ( $x, $y, $width, $height ) : self | ||
$x | ||
$y | ||
$width | ||
$height | ||
Résultat | self |
public setBackgroundColor ( $color ) : |
||
$color | ||
Résultat |
public setBackgroundImage ( $image, null | string $mode = null ) | ||
$image | ||
$mode | null | string |