array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'imagick.mapimage.php', 1 => 'Imagick::mapImage', 2 => 'Replaces the colors of an image with the closest color from a reference image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.magnifyimage.php', 1 => 'Imagick::magnifyImage', ), 'next' => array ( 0 => 'imagick.mattefloodfillimage.php', 1 => 'Imagick::matteFloodfillImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/mapimage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::mapImage

(PECL imagick 2, PECL imagick 3)

Imagick::mapImageReplaces the colors of an image with the closest color from a reference image

Warning

This function has been DEPRECATED as of Imagick 3.4.4. Relying on this function is highly discouraged.

Description

public Imagick::mapImage(Imagick $map, bool $dither): bool

Parameters

map

dither

Return Values

Returns true on success.

Errors/Exceptions

Throws ImagickException on error.