Gd
extends AbstractFilter
in package
Filter class for Gd
Tags
Table of Contents
Properties
- $image : mixed
- Image object
Methods
- __construct() : mixed
- Constructor
- blur() : Gd
- Blur the image
- colorize() : Gd
- Colorize the image
- getImage() : AbstractAdapter|null
- Get the image object
- hasImage() : bool
- Has the image object
- negate() : Gd
- Create a negative of the image
- pencil() : Gd
- Apply a pencil/sketch effect to the image
- pixelate() : Gd
- Pixelate the image
- setImage() : AbstractEditObject
- Set the image object
- sharpen() : Gd
- Sharpen the image.
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
blur()
Blur the image
public
blur(int $amount[, int $type = IMG_FILTER_GAUSSIAN_BLUR ]) : Gd
Parameters
- $amount : int
- $type : int = IMG_FILTER_GAUSSIAN_BLUR
Return values
Gdcolorize()
Colorize the image
public
colorize(Rgb $color) : Gd
Parameters
- $color : Rgb
Return values
GdgetImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullhasImage()
Has the image object
public
hasImage() : bool
Return values
boolnegate()
Create a negative of the image
public
negate() : Gd
Return values
Gdpencil()
Apply a pencil/sketch effect to the image
public
pencil() : Gd
Return values
Gdpixelate()
Pixelate the image
public
pixelate(int $px) : Gd
Parameters
- $px : int
Return values
GdsetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter
Return values
AbstractEditObjectsharpen()
Sharpen the image.
public
sharpen(int $amount) : Gd
Parameters
- $amount : int