PHP Class Grafika\Imagick\Filter\Colorize

Inheritance: implements Grafika\FilterInterface
Datei anzeigen Open project: kosinix/grafika

Protected Properties

Property Type Description
$blue integer
$green integer
$red integer

Public Methods

Method Description
__construct ( integer $red, integer $green, integer $blue ) Colorize constructor.
apply ( Image $image ) : Image

Private Methods

Method Description
normalizeLevel ( $level )

Method Details

__construct() public method

Colorize constructor.
public __construct ( integer $red, integer $green, integer $blue )
$red integer The amount of red colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.
$green integer The amount of green colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.
$blue integer The amount of blue colors. >= -100 and <= -1 to reduce. 0 for no change. >= 1 and <= 100 to add.

apply() public method

public apply ( Image $image ) : Image
$image Grafika\Imagick\Image
return Grafika\Imagick\Image

Property Details

$blue protected_oe property

protected int $blue
return integer

$green protected_oe property

protected int $green
return integer

$red protected_oe property

protected int $red
return integer