Effects
in package
implements
EffectsInterface, InfoProvider
Effects implementation using the Gmagick PHP extension.
Table of Contents
Interfaces
- EffectsInterface
- Interface for the effects.
- InfoProvider
- Interface implemented by classes that provide info about a graphics driver.
Properties
- $gmagick : Gmagick
Methods
- __construct() : mixed
- Initialize the instance.
- blur() : $this
- Blur the image.
- brightness() : $this
- Changes the brightness of the image.
- colorize() : $this
- Colorize the image.
- convolve() : $this
- Convolves the image.
- gamma() : $this
- Apply gamma correction.
- getDriverInfo() : Info|null
- Get the info about this driver.
- grayscale() : $this
- Grayscale the image.
- negative() : $this
- Invert the colors of the image.
- sharpen() : $this
- Sharpens the image.
Properties
$gmagick
private
Gmagick
$gmagick
Methods
__construct()
Initialize the instance.
public
__construct(Gmagick $gmagick) : mixed
Parameters
- $gmagick : Gmagick
blur()
Blur the image.
public
blur([mixed $sigma = 1 ]) : $this
Parameters
- $sigma : mixed = 1
Tags
Return values
$thisbrightness()
Changes the brightness of the image.
public
brightness(mixed $brightness) : $this
Parameters
- $brightness : mixed
-
The level of brightness (-100 (black) to 100 (white))
Tags
Return values
$thiscolorize()
Colorize the image.
public
colorize(ColorInterface $color) : $this
Parameters
- $color : ColorInterface
Tags
Return values
$thisconvolve()
Convolves the image.
public
convolve(Matrix $matrix) : $this
Parameters
- $matrix : Matrix
-
The matrix from which derive the convolution kernel
Tags
Return values
$thisgamma()
Apply gamma correction.
public
gamma(mixed $correction) : $this
Parameters
- $correction : mixed
Tags
Return values
$thisgetDriverInfo()
Get the info about this driver.
public
static getDriverInfo([mixed $required = true ]) : Info|null
Parameters
- $required : mixed = true
-
when the driver is not available: if FALSE the function returns NULL, if TRUE the driver throws a \Imagine\Exception\NotSupportedException
Tags
Return values
Info|nullgrayscale()
Grayscale the image.
public
grayscale() : $this
Tags
Return values
$thisnegative()
Invert the colors of the image.
public
negative() : $this
Tags
Return values
$thissharpen()
Sharpens the image.
public
sharpen() : $this