PHP Class Grafika\Imagick\Filter\Dither

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

Public Methods

Method Description
__construct ( string $type = 'diffusion' ) Dither an image.
apply ( Image $image ) : Image Apply filter.

Private Methods

Method Description
diffusion ( Image $image ) : Image Dither using error diffusion.
ordered ( Image $image ) : Image Dither by applying a threshold map.

Method Details

__construct() public method

Dither an image.
public __construct ( string $type = 'diffusion' )
$type string Dithering algorithm to use. Options: diffusion, ordered. Defaults to diffusion.

apply() public method

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