interface EffectsInterface

Interface for the effects.

Methods

$this
gamma(float $correction)

Apply gamma correction.

$this
negative()

Invert the colors of the image.

$this
grayscale()

Grayscale the image.

$this
colorize(ColorInterface $color)

Colorize the image.

$this
sharpen()

Sharpens the image.

$this
blur(float|int $sigma)

Blur the image.

$this
brightness(int $brightness)

Changes the brightness of the image.

$this
convolve(Matrix $matrix)

Convolves the image.

Details

at line 31
$this gamma(float $correction)

Apply gamma correction.

Parameters

float $correction

Return Value

$this

Exceptions

RuntimeException

at line 40
$this negative()

Invert the colors of the image.

Return Value

$this

Exceptions

RuntimeException

at line 49
$this grayscale()

Grayscale the image.

Return Value

$this

Exceptions

RuntimeException

at line 60
$this colorize(ColorInterface $color)

Colorize the image.

Parameters

ColorInterface $color

Return Value

$this

Exceptions

RuntimeException

at line 69
$this sharpen()

Sharpens the image.

Return Value

$this

Exceptions

RuntimeException

at line 80
$this blur(float|int $sigma)

Blur the image.

Parameters

float|int $sigma

Return Value

$this

Exceptions

RuntimeException

at line 91
$this brightness(int $brightness)

Changes the brightness of the image.

Parameters

int $brightness The level of brightness (-100 (black) to 100 (white))

Return Value

$this

Exceptions

RuntimeException

at line 102
$this convolve(Matrix $matrix)

Convolves the image.

Parameters

Matrix $matrix The matrix from which derive the convolution kernel

Return Value

$this

Exceptions

RuntimeException