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

Gmagick::mapimage

(PECL gmagick >= Unknown)

Gmagick::mapimageReplaces the colors of an image with the closest color from a reference image

Beschreibung

public Gmagick::mapimage(gmagick $gmagick, bool $dither): Gmagick

Replaces the colors of an image with the closest color from a reference image.

Parameter-Liste

gmagick

The reference image.

dither

Set this integer value to something other than zero to dither the mapped image.

Rückgabewerte

The Gmagick object.

Fehler/Exceptions

Wirft bei einem Fehler eine GmagickException.