EffectsInterface
in
Interface for the effects.
Table of Contents
Methods
- 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.
- grayscale() : $this
- Grayscale the image.
- negative() : $this
- Invert the colors of the image.
- sharpen() : $this
- Sharpens the image.
Methods
blur()
Blur the image.
public
blur(float|int $sigma) : $this
Parameters
- $sigma : float|int
Tags
Return values
$thisbrightness()
Changes the brightness of the image.
public
brightness(int $brightness) : $this
Parameters
- $brightness : int
-
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(float $correction) : $this
Parameters
- $correction : float
Tags
Return values
$thisgrayscale()
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