PHP Class Grafika\Imagick\Filter\Dither

Inheritance: implements Grafika\FilterInterface
Afficher le fichier Open project: kosinix/grafika

Méthodes publiques

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

Private Methods

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

Method Details

__construct() public méthode

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

apply() public méthode

Apply filter.
public apply ( Image $image ) : Image
$image Grafika\Imagick\Image
Résultat Grafika\Imagick\Image