method negate documentation in bbn\File\Image

Converts the image's color to negative.

Example

$img = new bbn\File\Image("/home/data/test/image.jpg"); $img->negate(); function() { if ($this->test()) { if (self::isImagick()) { if (!$this->img->negateImage(false)) { $this->error = X::_("There has been a problem"); } } elseif (function_exists('imagefilter')) { if (!imagefilter($this->img,IMG_FILTER_NEGATE)) { $this->error = X::_("There has been a problem"); } } } return $this; }

Converts the image's color to negative. 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.