method replaceColor documentation in bbn\File\Image
function($originalColor, $newColor = NULL, $precision = 0)
{
if (self::isImagick()) {
$this->img = new \Imagick($this->file);
if ($newColor === null) {
$this->img->setImageFormat('png');
$this->img->transparentPaintImage($originalColor, 0.0, 0.1 * \Imagick::getQuantum(), 0);
} else {
$this->img->opaquePaintImage(
$originalColor, $newColor, 0.1 * \Imagick::getQuantum(), 0
);
}
}
elseif (function_exists('imagecolorset')) {
}
return false;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions