Gd
extends AbstractLayer
in package
Layer class for Gd
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor
- getImage() : AbstractAdapter|null
- Get the image object
- getOpacity() : int|float|null
- Get the opacity
- hasImage() : bool
- Has the image object
- overlay() : Gd
- Overlay an image onto the current image.
- setImage() : AbstractEditObject
- Set the image object
- setOpacity() : AbstractLayer
- Set the image opacity.
Properties
$image
Image object
protected
mixed
$image
= null
$opacity
Opacity
protected
int|float|null
$opacity
= 100
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
getImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullgetOpacity()
Get the opacity
public
getOpacity() : int|float|null
Return values
int|float|nullhasImage()
Has the image object
public
hasImage() : bool
Return values
booloverlay()
Overlay an image onto the current image.
public
overlay(string $image[, int $x = 0 ][, int $y = 0 ]) : Gd
Parameters
- $image : string
- $x : int = 0
- $y : int = 0
Tags
Return values
GdsetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter
Return values
AbstractEditObjectsetOpacity()
Set the image opacity.
public
setOpacity(int|float $opacity) : AbstractLayer
Parameters
- $opacity : int|float