Gd
extends AbstractAdjust
in package
Adjust class for Gd
Tags
Table of Contents
Properties
- $image : mixed
- Image object
Methods
- __construct() : mixed
- Constructor
- brightness() : Gd
- Adjust the image brightness
- contrast() : Gd
- Adjust the image contrast
- desaturate() : Gd
- Adjust the image desaturate
- getImage() : AbstractAdapter|null
- Get the image object
- hasImage() : bool
- Has the image object
- setImage() : AbstractEditObject
- Set the image object
Properties
$image
Image object
protected
mixed
$image
= null
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
brightness()
Adjust the image brightness
public
brightness(int $amount) : Gd
Parameters
- $amount : int
Return values
Gdcontrast()
Adjust the image contrast
public
contrast(int $amount) : Gd
Parameters
- $amount : int
Return values
Gddesaturate()
Adjust the image desaturate
public
desaturate() : Gd
Return values
GdgetImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullhasImage()
Has the image object
public
hasImage() : bool
Return values
boolsetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter