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