php8.5
Home/ Manual/ imagick / imagick/ Imagick::remapImage

Imagick::remapImage

PHP function Edit on GitHub ✎

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Remaps image colors

Description

Imagick::remapImage(Imagick $replacement, int $DITHER): bool

Replaces colors an image with those defined by replacement. The colors are replaced with the closest possible color. 0x645

Parameters

replacement

An Imagick object containing the replacement colors

DITHER

Refer to this list of dither method constants

Return Values

Success

Errors/Exceptions

Throws

Source: reference/imagick/imagick/remapimage.xml · from the official PHP manual (php/doc-en)