method flip documentation in bbn\File\Image

Flips the image.

Example

$img = new bbn\File\Image("/home/data/test/image.jpg"); $img->flip()->save(); $img->flip("h")->save(); $img->flip()->save(); function($mode = 'v') { if ($this->test()) { if (self::isImagick()) { if ($mode == 'v') { if (!$this->img->flipImage()) { $this->error = X::_("There has been a problem"); } } elseif (!$this->img->flopImage()) { $this->error = X::_("There has been a problem"); } } else { $w = imagesx($this->img); $h = imagesy($this->img); if ($mode == 'v') { imageflip($this->img, IMG_FLIP_VERTICAL); } else{ imageflip($this->img, IMG_FLIP_HORIZONTAL); } } } return $this; }

Flips the image. 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.