Effects
class Effects implements EffectsInterface
Effects implementation using the GD PHP extension.
Methods
__construct(resource|GdImage $resource)
Initialize the instance.
$this
gamma(float $correction)
Apply gamma correction.
$this
negative()
Invert the colors of the image.
$this
grayscale()
Grayscale the image.
$this
$this
sharpen()
Sharpens the image.
$this
blur(float|int $sigma = 1)
Blur the image.
$this
brightness(int $brightness)
Changes the brightness of the image.
Details
at line 36
__construct(resource|GdImage $resource)
Initialize the instance.
at line 46
$this
gamma(float $correction)
Apply gamma correction.
at line 60
$this
negative()
Invert the colors of the image.
at line 74
$this
grayscale()
Grayscale the image.
at line 88
$this
colorize(ColorInterface $color)
Colorize the image.
at line 106
$this
sharpen()
Sharpens the image.
at line 123
$this
blur(float|int $sigma = 1)
Blur the image.
at line 137
$this
brightness(int $brightness)
Changes the brightness of the image.
at line 155
$this
convolve(Matrix $matrix)
Convolves the image.