Property | Type | Description | |
---|---|---|---|
$path | string | ||
$resource | mixed | contains imageresource |
Method | 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 ) |
Method | 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 | ||
return | resource |
public crop ( $x, $y, $width, $height ) : self | ||
$x | ||
$y | ||
$width | ||
$height | ||
return | self |
public setBackgroundColor ( $color ) : |
||
$color | ||
return |
public setBackgroundImage ( $image, null | string $mode = null ) | ||
$image | ||
$mode | null | string |