芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/imagine/imagine/src/Filter/Basic/Show.php
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Imagine\Filter\Basic; use Imagine\Filter\FilterInterface; use Imagine\Image\ImageInterface; /** * A show filter. */ class Show implements FilterInterface { /** * @var string */ private $format; /** * @var array */ private $options; /** * Constructs the Show filter with given format and options. * * @param string $format * @param array $options */ public function __construct($format, array $options = array()) { $this->format = $format; $this->options = $options; } /** * {@inheritdoc} * * @see \Imagine\Filter\FilterInterface::apply() */ public function apply(ImageInterface $image) { return $image->show($this->format, $this->options); } }